问答详情
源自:2-2 webpack配置项目加载各种静态资源及css预处理器

webpack build有问题

errno 1

npm ERR! todo@1.0.0 build: `cross-env NODE_ENV=production webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the todo@1.0.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\hyc-lhj\AppData\Roaming\npm-cache\_logs\2018-10-16T02_27_17_681Z-debug.log

老是报这个错啊,代码都一样了搞不定。。。

提问者:感性理性 2018-10-16 10:29

个回答

  • qq_Struggle_5
    2018-10-16 18:48:30
    已采纳

    你使用的webpack是什么版本?

  • 感性理性
    2018-10-17 19:29:27

    4.0