运行webpack时,输出这样的提示是什么问题?

liubin_PC@DESKTOP-9UIIDU6 MINGW32 /e/webpack/webpack-test
$ webpack
No 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.

时光有染
浏览 1959回答 1
1回答

滄浪之水

webpack 运行会去查找webpack.config.js 文件,如果没有找到会报错如果不想用webpack.config.js,可以用--config指定特定的文件$ webpack --config YOURJSFILE.js
打开App,查看更多内容
随时随地看视频慕课网APP