发布于 4年前

webpack报错:ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can't resolve '....

看视频学的文本pack打包操作:

webpack .\src\main.js .\dist\bundle.js

报错

ERROR in multi ./src/main.js ./dist/bundle.js
Module not found: Error: Can't resolve '.\dist\bundle.js' in 'E:\

查了一下,原来webpack的打包cli命令已改为:

webpack <entry> [<entry>] -o <output>
webpack .\src\main.js -o .\dist\bundle.js

搞定!

©2020 edoou.com   京ICP备16001874号-3