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]

 

你可能感兴趣的:(Webpack版本与extract-text-webpack-plugin插件)