@alexcambose/recjs
Version:
Lightweight user session recorder based on JSON
25 lines (24 loc) • 546 B
JavaScript
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'dist.js'
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
loaders: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},
plugins: [
new UglifyJsPlugin()
]
};