From 7ef3de51fbd866652f8e096d21e350b00dcaa6c5 Mon Sep 17 00:00:00 2001 From: atanasster Date: Mon, 8 Mar 2021 18:29:44 -0500 Subject: [PATCH] fix: revert default modules css-loader --- core/webpack-configs/src/react/index.ts | 1 - examples/simple/docs/buildtime.js | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/webpack-configs/src/react/index.ts b/core/webpack-configs/src/react/index.ts index 7c928cc05..ba4b7debe 100644 --- a/core/webpack-configs/src/react/index.ts +++ b/core/webpack-configs/src/react/index.ts @@ -147,7 +147,6 @@ export const react: PresetCallback = (options: BuildProps) => { loader: 'css-loader', options: customLoaderOptions(options, 'css-loader', { sourceMap: true, - modules: true, }), }, ...cssLoaders, diff --git a/examples/simple/docs/buildtime.js b/examples/simple/docs/buildtime.js index 28aff3d20..c18cc0937 100644 --- a/examples/simple/docs/buildtime.js +++ b/examples/simple/docs/buildtime.js @@ -2,4 +2,9 @@ module.exports = { stories: ['./src/*.@(mdx|tsx)'], siteUrl: `https://component-controls-gatsby.netlify.app`, cssFileName: 'globals.css', + loaders: { + 'css-loader': { + modules: true, + }, + }, };