webpack手動配置webpack.config.js文件,打包時出現的報錯,可以試試這種解決方案
報錯如下:
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.
在打包時,報錯
想要解決這個問題,很簡單,把webpack.config.js放到項目的根目錄文件上,就可以解決了,
我的問題就是這樣解決的。我搜了網上很多解決辦法,都沒有辦法,這個就可以用,如果這個解決不了你們的問題,那就得去考慮別的方法了。