You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
485 B

var webpack = require('webpack')
module.exports = {
entry: {
app: ['./example/main.js']
},
output: {
filename: 'output.js',
pathinfo: true
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
options: {
presets: ['es2015']
}
}
]
}
]
},
plugins: [
new webpack.NamedModulesPlugin()
]
}