使用npm run build時(shí),出現(xiàn)下面的問題
使用npm run build時(shí),出現(xiàn)下面的問題。檢查代碼,應(yīng)該是沒有寫錯(cuò)的。怎么解決呢?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue_ssr_tech@1.0.0 build: `webpack --config webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue_ssr_tech@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!? ? ?/Users/mymac/.npm/_logs/2018-09-18T07_41_36_761Z-debug.log
我按照教學(xué)視頻配置的代碼如下:
2018-09-24
2018-09-24
這個(gè)可能是你有在webpack.config.js中加入plugins(我多裝了style-loader url-loader file-loader)
2018-09-18
這個(gè)是新版本的webpack有更改過的緣故,只要把<style></style>中間的樣式注釋掉就不會(huì)報(bào)錯(cuò),應(yīng)該是少了一個(gè)關(guān)于style的插件,但具體是什么我暫時(shí)也不知道