webpack ./src/page/index/index.js ./dist/app.js出问题
来源:3-4 npm和webpack的初始化
uuugggd
2019-09-23
hp@DESKTOP-0EVAHJJ MINGW64 ~/Desktop/shopping/doc/mmall-fe (mmall_v1.0)
$ webpack ./src/page/index/index.js ./dist/app.js
Hash: a7615eb27b25572e27bb
Version: webpack 4.40.2
Time: 108ms
Built at: 2019-09-23 19:00:05
Asset Size Chunks Chunk Names
app.js 1.04 KiB 0 [emitted] main
Entrypoint main = app.js
[0] multi ./src/page/index/index.js ./dist/app.js 40 bytes {0} [built]
[1] ./src/page/index/index.js 48 bytes {0} [built]
[2] ./src/page/index/cats.js 61 bytes {0} [built]
[3] ./dist/app.js 0 bytes {0} [built]
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/configuration/mode/
1回答
-
Rosen
2019-09-23
webpack版本用的新版本的,不支持这个命令了
022019-09-26
相似问题