liubin_PC@DESKTOP-9UIIDU6 MINGW32 /e/webpack/webpack-test$ webpackNo configuration file found and no output filename configured via CLI option.A configuration file could be named 'webpack.config.js' in the current directory.Use --help to display the CLI options.
1 回答
已采納

滄浪之水
TA貢獻(xiàn)15條經(jīng)驗 獲得超2個贊
webpack 運行會去查找webpack.config.js 文件,如果沒有找到會報錯
如果不想用webpack.config.js,可以用--config指定特定的文件
$ webpack --config YOURJSFILE.js
添加回答
舉報
0/150
提交
取消