Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from andykenward/feature/css-modules-local-ident
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanClementsHax committed Feb 2, 2022
2 parents 6583c20 + 8ca6e08 commit c468096
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/css/webpack.ts
@@ -1,4 +1,5 @@
import { NextConfig } from 'next'
import { getCssModuleLocalIdent } from 'next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent'
import { Configuration as WebpackConfig } from 'webpack'

export const configureCss = (
Expand All @@ -19,7 +20,7 @@ export const configureCss = (
{
loader: 'css-loader',
options: {
modules: { auto: true }
modules: { auto: true, getLocalIdent: getCssModuleLocalIdent }
}
},
'postcss-loader'
Expand All @@ -34,7 +35,7 @@ export const configureCss = (
{
loader: 'css-loader',
options: {
modules: { auto: true }
modules: { auto: true, getLocalIdent: getCssModuleLocalIdent}
}
},
'postcss-loader',
Expand Down

0 comments on commit c468096

Please sign in to comment.