昨天寫的打包什么的都沒出問題,今天早上到公司,運(yùn)行npm run webpack 就報(bào)錯了
昨天寫的打包什么的都沒出問題,今天早上到公司,運(yùn)行npm run webpack 就報(bào)錯了,不知道哪里出問題了,很煩啊!
Child html-webpack-plug
? ? ? ?[0] ./node_modul
es {0} [built] [failed]
? ? ERROR in ./node_mod
? ? Module build failed
? ? ? ? at D:\webpack-d
? ? ? ? at apply (D:\we
? ? ? ? at D:\webpack-d
? ? ? ? at apply (D:\we
? ? ? ? at D:\webpack-d
? ? ? ? at Function.tem
2:20)
? ? ? ? at Object.modul
in\lib\loader.js:32:20)
npm ERR! code ELIFECYCL
npm ERR! errno 2
npm ERR! webpack-demo@1
ess --display-modules -
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the
npm ERR! This is probab
ging output above.
npm ERR! A complete log
npm ERR! ? ? C:\Users\A
1_41_57_367Z-debug.log
2017-06-29
好吧,我把<% for(var key in htmlWebpackPlugin) { %>
<%= key %>
<% } %>這段代碼注釋掉之后就報(bào)錯了,刪了就好了