解决webpack打包错误问题 1.webpack3.X版本打包命令 webpack .\src\main.js .\dist\bundle.js 2.webpack4.X版本打包命令 webpack .\src\main.js -o .\dist\bundle.js