1
以下是我的webpack.config.js。我指定了一個輸出文件名,但是我仍然收到錯誤throw new Error("'output.filename' is required, either in config file or as --output-filename")
webpack無法識別輸出文件名
/public director是否需要存在或將webpack創建一個?
module.export = {
entry: [
'/ts/main.ts',
'/ts/vendor.ts'
],
output:{
path: __dirname+'/public',
filename:'[name].bundle.js'
},
rules:
{
test:'/\.ts$/',
loader:'awesome-typescript-loader'
}
}