22 lines
420 B
JavaScript
22 lines
420 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry : './react/uploader.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'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|