28 lines
500 B
JavaScript
28 lines
500 B
JavaScript
|
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()
|
||
|
]
|
||
|
};
|