update
This commit is contained in:
parent
109e9cfd2f
commit
ca8ea46c72
@ -1 +0,0 @@
|
||||
03-Webpack.md
|
46
22-前端工程化/01-Webpack.md
Normal file
46
22-前端工程化/01-Webpack.md
Normal file
@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
|
||||
## 关于 Webpack
|
||||
|
||||
### WebPack的介绍
|
||||
|
||||
|
||||
- 中文文档:<https://doc.webpack-china.org/concepts/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### 文本的开发环境
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Webpack4 的升级说明
|
||||
|
||||
如果Webpack要更新到4,会导致其他的内容也会变化:
|
||||
|
||||
- 版本变化:loader、plugin也要相应升级。
|
||||
|
||||
- 配置变化:增加了 module 的配置项,用来区分开发环境和生产环境。
|
||||
|
||||
- 插件变化:比如,webpack 3中的`CommonsChunkPlugin`在4中取消了,而是通过...去配置。
|
||||
|
||||
|
||||
参考链接:
|
||||
|
||||
- [webpack4升级指北](https://www.imooc.com/article/23555)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user