HummingBirdAnimeClient/frontEndSrc/spack.config.js
Timothy J. Warren 7afdab80ac
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Update frontend minification config and dependencies
2024-02-15 15:21:26 -05:00

35 lines
593 B
JavaScript

const { config } = require("@swc/core/spack");
module.exports = config({
entry: {
'scripts.min': __dirname + '/js/index.js',
'tables.min': __dirname + '/js/base/sort-tables.js',
},
output: {
path: '../public/js',
},
options: {
jsc: {
parser: {
syntax: "ecmascript",
jsx: false,
},
target: 'es2018',
loose: false,
// keepClassNames: true,
// preserveAllComments: true,
minify: {
compress: {
unused: true,
},
mangle: true,
format: {
comments: false,
}
}
},
minify: true,
sourceMaps: true,
isModule: true,
}
});