spee.ch/webpack.config.js

23 lines
417 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
2018-01-09 02:06:31 +01:00
entry : './react/index.js',
output: {
path : path.join(__dirname, '/public/bundle/'),
filename: 'bundle.js',
},
watch : true,
module: {
loaders: [
{
test : /.jsx?$/,
loader : 'babel-loader',
exclude: /node_modules/,
query : {
presets: ['es2015', 'react'],
},
},
],
},
};