Bug 37911: (follow-up) Let style-, css-loader handle styles in Koha's Vue apps

- Remove 'experiments: css' for the first config block since it seems to do 2 passes when building the css.
- Remove style-, css-loader configuration for islands as I assume it is unneeded in this case.

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-07 15:05:07 +02:00 committed by Katrin Fischer
parent e3d3224f6f
commit c7f5e2740c
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 9 deletions

View File

@ -13,9 +13,6 @@ module.exports = [
),
},
},
experiments: {
css: true,
},
entry: {
erm: "./koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts",
preservation:
@ -129,12 +126,7 @@ module.exports = [
path.resolve(__dirname, "t/cypress/"),
],
type: "javascript/auto",
},
{
test: /\.css$/i,
type: "javascript/auto",
use: ["style-loader", "css-loader"],
},
}
],
},
plugins: [