From 3474026a6e6f79006258e7978543c504b4edfaf8 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Mon, 7 Apr 2025 15:05:07 +0200 Subject: [PATCH] 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. --- rspack.config.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rspack.config.js b/rspack.config.js index bd61fe6c0f..c4ee7d9a49 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -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: [ -- 2.49.0