Webpack 常用 Plugin 和 Loader

常用Loader

html 相关

html-loader
`</pre>

css 相关

<pre>`style-loader
css-loader
autoprefixer-loader
sass-loader
`</pre>

js 相关

<pre>`babel-loader
babel-core
babel-preset-es2015
babel-preset-react
babel-preset-stage3
eslint-loader
`</pre>

### 常用插件Plugin

#### config 类

<pre>`NormalModuleReplacementPlugin
ContextReplacementPlugin
IgnorePlugin
PrefetchPlugin
`</pre>

#### Optimize

<pre>`DedupePlugin
LimitChunkCountPlugin
OccurenceOrderPlugin
UglifyJsPlugin
CommonsChunkPlugin
`</pre>

#### 其他

<pre>`HotModuleReplacementPlugin
NoErrorPlugin
ProgressPlugin
HtmlWebpackPlugin

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×