Skip to content

Commit e132027

Browse files
committed
chore: adds CSS modules config
1 parent c75fd0f commit e132027

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gatsby-config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const config = {
6666
DEV_SSR: !!process.env.GATSBY_DEV_SSR,
6767
},
6868
plugins: [
69+
'gatsby-plugin-postcss',
6970
'gatsby-plugin-styled-components',
7071
'gatsby-transformer-yaml',
7172
{

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ module.exports = {
44
transform: {
55
'^.+\\.jsx?$': `<rootDir>/jest-preprocess.js`,
66
},
7+
moduleNameMapper: {
8+
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`,
9+
},
710
}

0 commit comments

Comments
 (0)