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' } }