webpack/test/configCases/css/css-modules/webpack.config.js

31 lines
500 B
JavaScript
Raw Normal View History

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
},
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
}
];