Following is my webpack.config.js. I have specified an output file name but I still get error throw new Error("'output.filename' is required, either in config file or as --output-filename")
Does /public director need to exist or will webpack create one?
module.export = {
entry: [
'/ts/main.ts',
'/ts/vendor.ts'
],
output:{
path: __dirname+'/public',
filename:'[name].bundle.js'
},
rules:
{
test:'/\.ts$/',
loader:'awesome-typescript-loader'
}
}