webpack报错ERROR in Entry module not found: Error:Can't resolve 'main.js'
在看到很多旧教程上教的webpack的cli操作
webpack ./app.js bundle.js
但是如果现在用webpack再次操作的话,会报错
ERROR in Entry module not found: Error: Can't resolve 'main.js' in 'D:\SELFINTRODUCE\src'
查了一下官方文档才得知,webpack的打包cli命令已经更改:
webpack <entry> [<entry>] -o <output>