Skip to content

Commit

Permalink
chore: adds CSS modules config
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Nov 21, 2024
1 parent df854c8 commit afb710f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const config = {
DEV_SSR: !!process.env.GATSBY_DEV_SSR,
},
plugins: [
'gatsby-plugin-postcss',
'gatsby-plugin-styled-components',
'gatsby-transformer-yaml',
{
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ module.exports = {
transform: {
'^.+\\.jsx?$': `<rootDir>/jest-preprocess.js`,
},
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
},
}

0 comments on commit afb710f

Please sign in to comment.