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',