webpack2 教程 官方github
$ npm install
$ git clone git@github.com:slashhuang/webpack-tutorial.git
# run the following npm scripts to learn webpack2
npm run entry
"scripts": {
"entry": "node ./command.js -f=entry",
"output": "node ./command.js -f=output",
"split": "node ./command.js -f=code_split",
"module": "node ./command.js -f=modules",
"resolve": "node ./command.js -f=resolve",
"devtool": "node ./command.js -f=devtool",
"loaders": "node ./command.js -f=loaders",
"plugins": "node ./command.js -f=plugins"
}