scratch-l10n/webpack.config.js
chrisgarrity 4a9cdc7f4a L10n packaging (#1)
* Initial version of scratch-l10n package
2017-09-21 11:54:41 -04:00

20 lines
442 B
JavaScript

const path = require('path');
module.exports = {
devtool: 'cheap-module-source-map',
module: {
rules: [{
test: /\.js$/,
loader: 'babel-loader',
include: path.resolve(__dirname, 'src')
}]
},
entry: {
l10n: './src/index.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
libraryTarget: 'commonjs2'
}
};