2022-01-19 01:14:50 +08:00
|
|
|
const webpack = require("../../../../");
|
|
|
|
|
2021-12-15 15:34:31 +08:00
|
|
|
/** @type {import("../../../../").Configuration[]} */
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
target: "web",
|
|
|
|
mode: "development",
|
|
|
|
experiments: {
|
|
|
|
css: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: "web",
|
|
|
|
mode: "production",
|
2021-12-15 23:46:13 +08:00
|
|
|
output: {
|
|
|
|
uniqueName: "my-app"
|
|
|
|
},
|
2021-12-15 15:34:31 +08:00
|
|
|
experiments: {
|
|
|
|
css: true
|
2022-01-19 01:14:50 +08:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.ids.DeterministicModuleIdsPlugin({
|
|
|
|
maxLength: 3,
|
|
|
|
failOnConflict: true,
|
|
|
|
fixedLength: true,
|
|
|
|
test: m => m.type.startsWith("css")
|
|
|
|
})
|
|
|
|
]
|
2021-12-15 15:34:31 +08:00
|
|
|
}
|
|
|
|
];
|