碼農五花肉丶
2017-05-25 22:33
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配置文件名是webpack.config.js,你有webpack.config.js文件吗?你试试这样写呢
module.exports = { entry:'./src/script/main.js', output:{ path: __dirname + '/dist/js', filename:'bundle.js' } }
webpack深入与实战
86561 学习 · 721 问题
相似问题