vue运行及打包踩过的坑
2019-07-05 本文已影响0人
青城墨阕
npm run dev

需要升级webpack,webpack 4.4.1
npm i webpack@4.4.1 --save

npm install webpack-cli -D
npm update
npm i webpack-dev-server@3.1.4
npm update


npm i --save--dev html-webpack-plugin@next

npm i vue-loader@latest

在webpack.base.conf.js中配置


npm i webpack-dev-server@3.5.1 --save

//1.安装lottie-web
npm i lottie-web --save
// 2.然后在应用animationData的地方改为
animationData: animationData.default
npm run docs:dev

npm install --save-dev babel-core babel-loader babel-preset-env babel-preset-vue
//2 babel-core与babel-loader要版本统一!!!

