drop.chapril.org-firefoxsend/webpack.config.js
2017-08-09 14:25:37 -07:00

30 lines
634 B
JavaScript

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')
},
module: {
loaders: [
{
test: /\.js$/,
loaders: 'babel-loader',
include: [
path.resolve(__dirname, 'frontend'),
path.resolve(__dirname, 'node_modules/testpilot-ga/src')
],
query: {
babelrc: false,
presets: ['es2015', 'stage-2'],
plugins: ['add-module-exports']
}
}
]
}
};