热重载不管用的同志们,去源码里把package.json中的dependencies整个复制粘贴过来,删掉原来的node_modules, 重新npm install,你会发现整个世界都明亮了
2018-04-03
如果跟着视频来,运行时却一直报错无法解决的,建议将所有包版本保持与视频里一致,特别是以下几个包的版本:
"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
> todos@1.0.0 build /Users/apple/Desktop/todos
> webpack --config webpack webpack.config.js
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
> webpack --config webpack webpack.config.js
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
2018-03-28