Webpack版本与extract-text-webpack-plugin插件

因为我想跟着书上走,所以就配置了webpack2x,当配置插件extract-text-webpack-plugin时,使用以下命令

npm install extract-text-webpack-plugin --save-dev

一直出错,当然是版本冲突的问题了,现在都webpack4x了,插件的配置当然跟着webpack的版本走

# for webpack 3 
npm install --save-dev extract-text-webpack-plugin
# for webpack 2 
npm install --save-dev [email protected]
# for webpack 1 
npm install --save-dev [email protected]

猜你喜欢

转载自blog.csdn.net/brave_haha/article/details/81124564