web-pack>webpack .\src\main.js .\dist\bundle.js 报错
(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