webpack 手动编译报错

我的webpack版本是:4.16.5

报错编译: webpack ./xx/xxxx.js   ./xx/xx.bundle.js

报错内容:

ERROR in multi ./xx/xx.js ./xx/xx.bundle.js
Module not found: Error: Can't resolve './xx/xx.bundle.js' in 'F:\xxx\xxx'
@ multi ./xx/xx.js ./xx/xx.bundle.js main[1]

解决方法 :加 --output 。

                   webpack ./xx/xxxx.js  --output   ./xx/xx.bundle.js

猜你喜欢

转载自www.cnblogs.com/hellowoeld/p/9486022.html