Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Enable css modules in config
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks committed Nov 10, 2019
1 parent 348f24f commit 272b1ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

next.config.js
# next.config.js
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const withSass = require("@zeit/next-sass");

module.exports = withSass({
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: "[local]___[hash:base64:5]"
}
});

0 comments on commit 272b1ab

Please sign in to comment.