/webpack2-tutorial

A webpack2 tutorial for beginners

Primary LanguageJavaScript

webpack2-tutorial

webpack2 教程 官方github

  $ npm install 

Usage 使用

  $ 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"
  }

参考资料

  1. webpack2参考资料