diff --git a/tgui/rspack.config-dev.cjs b/tgui/rspack.config-dev.cjs index adb274affc..6044ef5a22 100644 --- a/tgui/rspack.config-dev.cjs +++ b/tgui/rspack.config-dev.cjs @@ -65,12 +65,7 @@ module.exports = (env = {}, argv) => { }, { loader: require.resolve('css-loader'), - }, - { - loader: require.resolve('sass-loader'), options: { - api: 'modern-compiler', - implementation: 'sass-embedded', url: { filter: (url, resourcePath) => { if (url.includes('.ttf')) { @@ -81,6 +76,13 @@ module.exports = (env = {}, argv) => { }, }, }, + { + loader: require.resolve('sass-loader'), + options: { + api: 'modern-compiler', + implementation: 'sass-embedded', + }, + }, ], type: 'javascript/auto', }, diff --git a/tgui/rspack.config.cjs b/tgui/rspack.config.cjs index 13dcc57a5e..b6e24c436f 100644 --- a/tgui/rspack.config.cjs +++ b/tgui/rspack.config.cjs @@ -72,6 +72,18 @@ module.exports = (env = {}, argv) => { }, }, module: { + parser: { + css: { + url: { + filter: (url, resourcePath) => { + if (url.includes('.ttf')) { + return false; + } + return true; + }, + }, + }, + }, rules: [ { test: /\.([tj]s(x)?|cjs)$/, @@ -103,14 +115,6 @@ module.exports = (env = {}, argv) => { options: { api: 'modern-compiler', implementation: 'sass-embedded', - url: { - filter: (url, resourcePath) => { - if (url.includes('.ttf')) { - return false; - } - return true; - }, - }, }, }, ],