2023-03-17 11:09:43 -04:00
|
|
|
const { config } = require("@swc/core/spack");
|
|
|
|
|
|
|
|
module.exports = config({
|
2021-04-23 18:58:51 -04:00
|
|
|
entry: {
|
|
|
|
'scripts.min': __dirname + '/js/index.js',
|
|
|
|
'tables.min': __dirname + '/js/base/sort-tables.js',
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: '../public/js',
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
jsc: {
|
2023-03-17 11:09:43 -04:00
|
|
|
parser: {
|
|
|
|
syntax: "ecmascript",
|
|
|
|
jsx: false,
|
|
|
|
},
|
2024-02-15 15:21:26 -05:00
|
|
|
target: 'es2018',
|
2023-03-17 11:09:43 -04:00
|
|
|
loose: false,
|
2024-02-15 15:21:26 -05:00
|
|
|
// keepClassNames: true,
|
|
|
|
// preserveAllComments: true,
|
|
|
|
minify: {
|
|
|
|
compress: {
|
|
|
|
unused: true,
|
|
|
|
},
|
|
|
|
mangle: true,
|
|
|
|
format: {
|
|
|
|
comments: false,
|
|
|
|
}
|
|
|
|
}
|
2021-04-23 18:58:51 -04:00
|
|
|
},
|
|
|
|
minify: true,
|
2024-02-15 15:21:26 -05:00
|
|
|
sourceMaps: true,
|
2023-03-17 11:09:43 -04:00
|
|
|
isModule: true,
|
2021-04-23 18:58:51 -04:00
|
|
|
}
|
2023-03-17 11:09:43 -04:00
|
|
|
});
|