web-packwebpack .\src\main.js .\dist\bundle.js 报错
生活随笔
收集整理的這篇文章主要介紹了
web-packwebpack .\src\main.js .\dist\bundle.js 报错
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
(1)使用指令?web-pack>webpack .\src\main.js ?.\dist\bundle.js ?報錯
(2).問題分析,wbpack版本太高,指令不一樣。我的是v4.14.0
(3) 解決辦法
解決方法:web-pack>webpack .\src\main.js --output .\dist\bundle.js
中間加一個 ?--output 指令
【
Usage without config file: webpack <entry> [<entry>] --output [-o] <output>
Notice:?--output?need to be specified explicitly
webpack ./src/index.js --output ./dist/bundle.js --mode development
總結
以上是生活随笔為你收集整理的web-packwebpack .\src\main.js .\dist\bundle.js 报错的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎么弹出u盘快捷窗口 快速弹出U盘窗口的
- 下一篇: 联想一进入pe就重启怎么回事 联想PE启