factom-vote
Version:
JS implementation of the Factom voting specification
28 lines (27 loc) • 789 B
JavaScript
const path = require('path');
module.exports = {
mode: 'production',
entry: {
'factom-vote': './src/factom-vote.js',
'factom-vote-struct': './src/factom-vote-struct.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: '[name]',
libraryTarget: 'umd'
},
module: {
rules: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/env'],
plugins: ['@babel/transform-runtime', '@babel/transform-async-to-generator', '@babel/transform-modules-commonjs']
}
}
}]
},
};