24
1
Fork 0
drop.chapril.org-firefoxsend/webpack.config.js

30 lines
633 B
JavaScript
Raw Normal View History

2017-08-07 04:32:07 +02: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 04:32:07 +02:00
},
module: {
2017-08-14 21:04:03 +02:00
rules: [
2017-08-07 04:32:07 +02:00
{
test: /\.js$/,
2017-08-14 21:04:03 +02:00
loader: 'babel-loader',
2017-08-09 21:56:32 +02:00
include: [
path.resolve(__dirname, 'frontend'),
path.resolve(__dirname, 'node_modules/testpilot-ga/src')
],
2017-08-14 21:04:03 +02:00
options: {
2017-08-09 21:56:32 +02:00
babelrc: false,
2017-08-10 19:02:13 +02:00
presets: [['es2015', { modules: false }], 'stage-2']
2017-08-09 21:56:32 +02:00
}
2017-08-07 04:32:07 +02:00
}
]
}
};