2017-12-28 20:51:03 +01:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-01-06 03:26:57 +01:00
|
|
|
entry : './react/PublishTool.js',
|
2017-12-28 20:51:03 +01:00
|
|
|
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'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|