Skip to content

Commit

Permalink
fix: revert default modules css-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 8, 2021
1 parent 96113f2 commit 7ef3de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/webpack-configs/src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export const react: PresetCallback = (options: BuildProps) => {
loader: 'css-loader',
options: customLoaderOptions(options, 'css-loader', {
sourceMap: true,
modules: true,
}),
},
...cssLoaders,
Expand Down
5 changes: 5 additions & 0 deletions examples/simple/docs/buildtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
};

0 comments on commit 7ef3de5

Please sign in to comment.