mirror of
https://github.com/daledavies/jump.git
synced 2025-11-12 00:05:40 +01:00
24 lines
580 B
JavaScript
24 lines
580 B
JavaScript
const path = require('path');
|
|
const Terser = require('terser-webpack-plugin');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: './jumpapp/assets/js/src/index.js',
|
|
output: {
|
|
filename: 'index.bundle.js',
|
|
path: path.resolve(__dirname, './jumpapp/assets/js/'),
|
|
},
|
|
optimization: {
|
|
minimizer: [
|
|
new Terser({
|
|
terserOptions: {
|
|
format: {
|
|
comments: false,
|
|
},
|
|
},
|
|
extractComments: false,
|
|
}),
|
|
],
|
|
},
|
|
};
|