***命令:*F:\teach\xcEdu\xcEduUI01\xc-ui-pc-static-portal\webPack>webpack index.js buld.js Hash: fc0ca433ff23b6861bb4 Version: webpack 4.30.0 Time: 5304ms Built at: 2019-04-23 12:05:59 1 asset Entrypoint main = main.js [0] (webpack)/buildin/global.js 472 bytes {0} [built] [1] multi ./index.js buld.js 40 bytes {0} [built] [2] ./index.js 490 bytes {0} [built] [3] ./model01.js 257 bytes {0} [built] [4] ./vue.min.js 84.6 KiB {0} [built] + 3 hidden modules WARNING in configuration The ‘mode’ option has not been set, webpack will fallback to ‘production’ for this value. Set ‘mode’ option to ‘development’ or ‘production’ to enable defaults for each environment. You can also set it to ‘none’ to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/ 错误:~~ERROR in multi ./index.js buld.js Module not found: Error: Can’t resolve ‘buld.js’ in ‘F:\teach\xcEdu\xcEduUI01\xc-ui-pc-static-portal\webPack’ @ multi ./index.js buld.js main[1] **~~
将命令webpack index.js buid.js改为 webpack index.js -o buid.js 原因是你的webpack版本比较高了,新版本的命令已经更改了