webpack2-tutorial icon indicating copy to clipboard operation
webpack2-tutorial copied to clipboard

A webpack2 tutorial for beginners

webpack2-tutorial

webpack2 教程 官方github

  $ npm install 

Usage 使用


  $ git clone [email protected]: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参考资料