Skip to content

Commit

Permalink
Fix(webpack): css modules not working automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Apr 24, 2021
1 parent a70826e commit 9694fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-cool-starter",
"version": "4.2.0",
"version": "4.2.1",
"private": true,
"description": "A starter boilerplate for a universal web application with the best development experience and best practices.",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions tools/webpack/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const getStyleLoaders = (isWeb: boolean, isSass?: boolean) => {
options: {
importLoaders: isSass ? 2 : 1,
modules: {
auto: true,
localIdentName: isDev ? "[path][name]__[local]" : "[hash:base64]",
exportOnlyLocals: !isWeb,
},
Expand Down

0 comments on commit 9694fd2

Please sign in to comment.