如果跟着视频来,运行时却一直报错无法解决的,建议将所有包版本保持与视频里一致,特别是以下几个包的版本:
"extract-text-webpack-plugin": "^3.0.2",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.7"
"extract-text-webpack-plugin": "^3.0.2",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.7"
2018-03-30
ERROR in ./src/app.vue
Module build failed: Error: Cannot find module 'core-js/library/fn/get-iterator' 用cnpm下载包,可以解决
Module build failed: Error: Cannot find module 'core-js/library/fn/get-iterator' 用cnpm下载包,可以解决
2018-03-29
webpack4 的同学记得在package.json里 的dev命令中加入--mode development,不加的话好像webpack.DefinePlugin的process.env默认是production。输出的bundle.js是生产模式的压缩代码。
2018-03-29