因为我想跟着书上走,所以就配置了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 extract-text-webpack-plugin@2.1.2
# for webpack 1
npm install --save-dev extract-text-webpack-plugin@1.0.1