mirror of https://github.com/webpack/webpack.git
38 lines
613 B
JavaScript
38 lines
613 B
JavaScript
"use strict";
|
|
|
|
const { DefinePlugin } = require("../../../../");
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
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")
|
|
})
|
|
]
|
|
}
|
|
];
|