fox-send/webpack.config.js

31 lines
655 B
JavaScript
Raw Normal View History

2017-08-07 02:32:07 +00:00
const path = require('path');
module.exports = {
entry: {
upload: ['./frontend/src/upload.js'],
download: ['./frontend/src/download.js']
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'public'),
publicPath: '/'
2017-08-07 02:32:07 +00:00
},
module: {
loaders: [
{
test: /\.js$/,
loaders: 'babel-loader',
2017-08-09 19:56:32 +00:00
include: [
path.resolve(__dirname, 'frontend'),
path.resolve(__dirname, 'node_modules/testpilot-ga/src')
],
query: {
babelrc: false,
presets: ['es2015', 'stage-2'],
plugins: ['add-module-exports']
}
2017-08-07 02:32:07 +00:00
}
]
}
};