请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

webpack ./src/page/index/index.js ./dist/app.js出问题

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/

正在回答 回答被采纳积分+3

1回答

Rosen 2019-09-23 21:25:32

webpack版本用的新版本的,不支持这个命令了

0 回复 有任何疑惑可以回复我~
  • 提问者 uuugggd #1
    那要用什么命令啊
    回复 有任何疑惑可以回复我~ 2019-09-23 22:35:16
  • Rosen 回复 提问者 uuugggd #2
    如果对webpack不太熟练还是建议用会课程里的版本,熟悉了再去升级一下。用最新版本的话就直接往下进行吧,用配置文件进行配置
    回复 有任何疑惑可以回复我~ 2019-09-26 11:31:06
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信