2025-07-16 22:29:28 +08:00
|
|
|
"use strict";
|
|
|
|
|
2020-07-31 18:13:30 +08:00
|
|
|
const { DefinePlugin } = require("../../../../");
|
2025-07-02 20:10:54 +08:00
|
|
|
|
2020-04-20 13:36:55 +08:00
|
|
|
/** @type {import("../../../../").Configuration} */
|
2020-07-31 18:13:30 +08:00
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
output: {
|
|
|
|
filename: "deterministic.js"
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
mangleExports: true,
|
|
|
|
usedExports: true,
|
|
|
|
providedExports: true
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new DefinePlugin({
|
|
|
|
OPTIMIZATION: JSON.stringify("deterministic")
|
|
|
|
})
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
output: {
|
|
|
|
filename: "size.js"
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
mangleExports: "size",
|
|
|
|
usedExports: true,
|
|
|
|
providedExports: true
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new DefinePlugin({
|
|
|
|
OPTIMIZATION: JSON.stringify("size")
|
|
|
|
})
|
|
|
|
]
|
2019-12-22 03:26:41 +08:00
|
|
|
}
|
2020-07-31 18:13:30 +08:00
|
|
|
];
|