forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use yarn patch for docusaurus sass problem
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/docusaurus-plugin-sass.js b/docusaurus-plugin-sass.js | ||
index 62180ebc48e43a21ad7b28de7e178c757941c69d..a4047541b2e84e19322276296cc161cdb1b29205 100644 | ||
--- a/docusaurus-plugin-sass.js | ||
+++ b/docusaurus-plugin-sass.js | ||
@@ -16,10 +16,10 @@ module.exports = function(_, {id, ...options}) { | ||
localIdentName: isProd | ||
? `[local]_[hash:base64:4]` | ||
: `[local]_[path]`, | ||
+ exportOnlyLocals: isServer, | ||
}, | ||
importLoaders: 1, | ||
sourceMap: !isProd, | ||
- onlyLocals: isServer, | ||
}), { | ||
loader: 'sass-loader', | ||
options: options || {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters