I am trying to configure webpack according to this tutorial and keep getting the same error. I am having trouble debugging these 2 messages:
ERROR in ./app.js
M
the loaders
option should be nested in a module
object like so:
module.exports = {
context: __dirname + '/app',
entry: {
javascript: "./app.js",
html: "./index.html"
},
output: {
filename: 'app.js',
path: __dirname + '/dist'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ['babel-loader']
},
{
test: /\.jsx$/,
loaders: ['babel-loader']
},
{
test: /\.html$/,
loader: "file?name=[name].[ext]"
}
]
}
};
I also added a missing semi-colon at the end ;)