From 7a61c50add4540f9543a537a53e76d48c5e42ff3 Mon Sep 17 00:00:00 2001 From: "davidovrelid.com" Date: Mon, 11 Mar 2024 21:14:09 +0100 Subject: [PATCH] update webpack.config to load CSS order correctly --- frontend/webpack.common.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/frontend/webpack.common.js b/frontend/webpack.common.js index e6482f6a9d0..2106073522b 100644 --- a/frontend/webpack.common.js +++ b/frontend/webpack.common.js @@ -33,27 +33,21 @@ module.exports = { use: ['@svgr/webpack'], }, { - test: /\.module\.css$/, + test: /(? { - // Disable processing for root-relative urls (e.g. /designer/img) - return !/^\//.test(url); - }, - }, - modules: { - localIdentName: '[name]__[local]--[hash:base64:5]', - }, + url: false, }, }, ], }, { - test: /(? { + // Disable processing for root-relative urls (e.g. /designer/img) + return !/^\//.test(url); + }, + }, + modules: { + localIdentName: '[name]__[local]--[hash:base64:5]', + }, }, }, ],