webpack3升级成4
删掉3安装4
npm uninstall webpack
npm install webpack@4 -D
webpack-dev-server版本不匹配
npm install webpack-dev-server@3.10.0 -D
webpack-cli不匹配( webpack-cli 包已经从webpack分离出来了,所以要单独安装)
npm install webpack-cli@3.3.12 -D
html-webpack-plugin·版本不兼容
npm i html-webpack-plugin@3 -D
vue-loader和webpack 版本不兼容
npm i vue-loader@14.2.2 -D
run dev正常打开页面空白
webpack4之后,不允许混用 exports和import
报错:No parser and no filepath given, using ‘babel’ the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.
解决:npm install -S vue-loader@14.2.4
**
npm i extract-text-webpack-plugin@next
解决:改用mini-css-extract-plugin
npm i --save-dev mini-css-extract-plugin@0.9.0