npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! todolistvue-todo@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the todolistvue-todo@1.0.0 dev script.
npm ERR! errno 1
npm ERR! todolistvue-todo@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the todolistvue-todo@1.0.0 dev script.
2018-03-19
学友们注意:webpack4删除了CommonsChunkPlugin,所以视频中对应的添加vendor的方法应改为:在else下新增“optimization:{cacheGroups:{vendor:{name:'vendor'}}}”,亲测有效。
2018-03-19
extract-text-webpack-plugin暂时不支持webpack4,大家可以使用“npm i extract-text-webpack-plugin@next”来解决。
2018-03-19
按照以下方式(老师的版本较旧)就不会出错
1.npm init(初始化)
2.npm webpack@3.10 vue vue-loader
3.npm css-loader vue-template-compiler
注意:1.__dirname有两个下划线;2.语法错误在执行npm run build命令后出现的代码的第四行查看,有个尖箭头指着;
1.npm init(初始化)
2.npm webpack@3.10 vue vue-loader
3.npm css-loader vue-template-compiler
注意:1.__dirname有两个下划线;2.语法错误在执行npm run build命令后出现的代码的第四行查看,有个尖箭头指着;
2018-03-19
$ npm run build
> vue-todo@1.0.0 build E:\www\vue-todo
> webpack --config webpack.config.js
npm ERR! code ELIFECYCLE
npm ERR! vue-todo@1.0.0 build: `webpack --config webpack.config.js`
npm ERR! Failed at the vue-todo@1.0.0 build script.
> vue-todo@1.0.0 build E:\www\vue-todo
> webpack --config webpack.config.js
npm ERR! code ELIFECYCLE
npm ERR! vue-todo@1.0.0 build: `webpack --config webpack.config.js`
npm ERR! Failed at the vue-todo@1.0.0 build script.
2018-03-18
最新回答 / 慕移动9181930
因为css里面写的是类选择器同学您好,这个百分比较相对于main层的,只有这样设置才能让左和右充满整个main层,left层没有被覆盖是因为设置了左边界!谢谢您的支持,祝您学习愉快!
2018-03-17
Invalid configuration object. Webpack has been initialised using a configuration object that does not matc
h the API schema.
- configuration.module.rules[2] has an unknown property 'text'. These properties
h the API schema.
- configuration.module.rules[2] has an unknown property 'text'. These properties
2018-03-16
npm run build报错: output: {
^^^^^^
SyntaxError: Unexpected identifier
^^^^^^
SyntaxError: Unexpected identifier
2018-03-16