scratch-l10n/webpack.config.js

21 lines
442 B
JavaScript
Raw Normal View History

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'
}
};