webpack-study
Repository for study webpack by practise.
run sample: > npm run build -- --config one-folder/webpack.config.js
Task list
ES6=>ES5uglify & source mapbasic reactlesswatch & 自动重新构建watch & 只重新构建修改部分(webpack默认是增量构建,开启默认--watch即可)hot reload按环境构建, production(包含在hot-reload任务中)提取公共代码server side rendering- tree shaking
- 按需加载 - 根据功能模块分批加载
- 按需加载 - 自定义模块加载时机
- scope hoisting
- Loader
- Plugin