ulogger-server/webpack.config.js

28 lines
500 B
JavaScript
Raw Normal View History

2019-07-27 19:38:00 +02:00
const path = require('path');
const MinifyPlugin = require('babel-minify-webpack-plugin');
module.exports = {
mode: 'production',
entry: './js/ulogger.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'js')
},
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
},
plugins: [
new MinifyPlugin()
]
};