請問這是什么意思,和老師寫的一樣但是報錯
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.
//commonjs的模塊化
module.exports = {
//打包的入口文件路徑
entry: './src/script/main.js',
//輸出文件的路徑
output: {
//輸出文件的路徑
path: './dist/js',
//輸出文件的名字
filename: 'bundle.js'
}
}
2018-02-04
文件名是? webpack.config.js? 看看是不是寫錯了,還有這個文件要放在package.json 文件夾