Skip to content

Instantly share code, notes, and snippets.

@xyzdata
Last active July 4, 2017 09:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzdata/fb812c7e4eb12e5ee243701ab7d37597 to your computer and use it in GitHub Desktop.
Save xyzdata/fb812c7e4eb12e5ee243701ab7d37597 to your computer and use it in GitHub Desktop.
webpack 2/3 advanced

webpack 2/3 advanced

https://webpack2.xgqfrms.xyz/

https://github.com/xgqfrms/React/blob/gh-pages/React-2017/plurasight/webpack-advanced.js

https://github.com/xgqfrms-GitHub/webpack2/tree/gh-pages/Tutorials

https://github.com/xgqfrms/learning/tree/gh-pages/Front-End-Tools/Webpack

https://github.com/xgqfrms/learning/blob/gh-pages/Front-End-Tools/Webpack/Webpack%202/Webpack2-%E5%8F%AF%E8%A7%86%E5%8C%96%E5%9B%BE%E8%A1%A8.md

https://github.com/xgqfrms/learning/blob/gh-pages/Front-End-Tools/Webpack/webpack2%20new/webpack.config.js

packagejson

https://github.com/xgqfrms-GitHub/webpack2/blob/gh-pages/Tutorials/01-installation.md#

    
/**
 * Created by xgqfrms on 2017/3/31.
 * Copyright © 2017-2050 xgqfrms
 * @version 2.1.1
 * website: https://www.xgqfrms.xyz/copyright.html
 */
'use strict';
// npm 

"scripts": {
    "start": "webpack --config webpack.config.js",
    "pro": "webpack --config webpack.pro.config.js",
    "dev": "webpack --config webpack.dev.config.js"
}

https://gist.github.com/xgqfrms-GitHub/0de1b7c9ac1478721ede3ff73189826e

https://webpack2.xgqfrms.xyz/

https://github.com/xgqfrms/xgqfrms/tree/gh-pages/webpack


webpack.config.js (base & prod/dev)

https://github.com/erikras/react-native-listener/blob/master/webpack.config.base.js https://github.com/erikras/react-native-listener/blob/master/webpack.config.production.js https://github.com/erikras/react-native-listener/blob/master/webpack.config.development.js

https://github.com/erikras/react-native-listener/blob/master/package.json

    
"scripts": {
    "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
    "build:lib": "babel src --out-dir lib",
    "build:umd": "webpack src/index.js dist/react-native-listener.js --config webpack.config.development.js",
    "build:umd:min": "webpack src/index.js dist/react-native-listener.min.js --config webpack.config.production.js",
    "clean": "rimraf dist lib",
    "lint": "eslint src",
    "prepublish": "npm run lint && npm run test && npm run clean && npm run build"
},

https://github.com/xgqfrms/React/tree/gh-pages/Redux-2017