From a3c72cf9bcb40a7b5fad9ca1b6e2b05287172ae4 Mon Sep 17 00:00:00 2001 From: Patrick Kranz Date: Thu, 21 Jan 2021 12:57:45 +0100 Subject: [PATCH] Fix problem with loading css/scsss As long as the `localIdentName` was set in the parameter the modules parameter was ignored. This resulted in the use of modules even when modules was set to false explicitly --- packages/just-scripts/src/webpack/overlays/stylesOverlay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/just-scripts/src/webpack/overlays/stylesOverlay.ts b/packages/just-scripts/src/webpack/overlays/stylesOverlay.ts index 99710c84..faa0f0e8 100644 --- a/packages/just-scripts/src/webpack/overlays/stylesOverlay.ts +++ b/packages/just-scripts/src/webpack/overlays/stylesOverlay.ts @@ -34,7 +34,7 @@ function createStyleLoaderRule(cssOptions: CssLoaderOptions, preprocessor: 'sass ...(preprocessor ? [preprocessor] : []), ]; - const moduleOptions = cssOptions.localIdentName + const moduleOptions = cssOptions.modules !== false && cssOptions.localIdentName ? { modules: { mode: 'local',