Bug 37911: (follow-up) Use style-, css-loader to preserve compatiblity with Koha's Vue components, e.g. Dialog.vue

- For now let's not rely on rspack's native css loader to parse and
  bundle styles as we need to preserve compatibility.
- Reintroduce configuration block for style-, css-loader for islands.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Paul Derscheid 2025-04-08 10:59:52 +02:00 committed by Katrin Fischer
parent c7f5e2740c
commit b724ffc16c
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,6 @@ module.exports = [
},
{
experiments: {
css: true,
outputModule: true,
},
entry: {
@ -126,7 +125,12 @@ module.exports = [
path.resolve(__dirname, "t/cypress/"),
],
type: "javascript/auto",
}
},
{
test: /\.css$/i,
type: "javascript/auto",
use: ["style-loader", "css-loader"],
},
],
},
plugins: [