日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

The 'mode' option has not been set, webpack will fallback to 'production' for th is value

發布時間:2023/12/18 编程问答 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 The 'mode' option has not been set, webpack will fallback to 'production' for th is value 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、錯誤描述

C:\Users\Administrator>cd cmaC:\Users\Administrator\cma>webpack you.js today.js Hash: 39919aae8cb041a7549f Version: webpack 4.10.2 Time: 588ms Built at: 2018-06-01 21:01:061 asset Entrypoint main = main.js [0] ./you.js 288 bytes {0} [built] [1] multi ./you.js today.js 40 bytes {0} [built]WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for th is 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 ./you.js today.js Module not found: Error: Can't resolve 'today.js' in 'C:\Users\Administrator\cma '@ multi ./you.js today.jsC:\Users\Administrator\cma>webpack you.js today.js Hash: 2ffa3d7e0a8a6e808dda Version: webpack 4.10.2 Time: 613ms Built at: 2018-06-01 21:11:11Asset Size Chunks Chunk Names main.js 1.1 KiB 0 [emitted] main Entrypoint main = main.js [0] ./today.js 0 bytes {0} [built] [1] ./you.js 288 bytes {0} [built] [2] multi ./you.js ./today.js 40 bytes {0} [built]WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for th is 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/C:\Users\Administrator\cma>webpack you.js today.js Hash: 2ffa3d7e0a8a6e808dda Version: webpack 4.10.2 Time: 156ms Built at: 2018-06-01 21:13:04Asset Size Chunks Chunk Names main.js 1.1 KiB 0 [emitted] main Entrypoint main = main.js [0] ./today.js 0 bytes {0} [built] [1] ./you.js 288 bytes {0} [built] [2] multi ./you.js ./today.js 40 bytes {0} [built]WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for th is 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/C:\Users\Administrator\cma>

2、錯誤原因

? ? ?沒有設置webpack的模式,是生產還是開發(production or development)


3、解決辦法

? ? ?執行命令:webpack --mode=production或者webpack --mode=development

C:\Users\Administrator>webpack --mode=production Hash: 68029a5423f50b49c81f Version: webpack 4.10.2 Time: 91ms Built at: 2018-06-01 21:18:40ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Users\Admin istrator'C:\Users\Administrator>

總結

以上是生活随笔為你收集整理的The 'mode' option has not been set, webpack will fallback to 'production' for th is value的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。