Update webpack file template for latest version
Webpack 4 has some syntax changes, mainly using rules key instead of plugin.
This commit is contained in:
parent
bc7c992f43
commit
98a4a94867
1 changed files with 10 additions and 4 deletions
|
@ -7,9 +7,15 @@ module.exports = {
|
|||
filename: "app.bundle.js"
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.js$/, include: __dirname + '/app', loader: 'babel-loader' }$0
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: "babel-loader"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
// plugins: []
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue