47 lines
589 B
Markdown
47 lines
589 B
Markdown
|
|
|||
|
|
|||
|
|
|||
|
## 关于 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)
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|