-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom css not loaded the same way with yarn start
and yarn build
#4231
Comments
I suspect this is related to #3678 We should find a way to ensure that the custom CSS provided by the user is always at the end of the stylesheet and allows to override properly the theme CSS modules + infima |
Hi Sébastien, Thanks for the quick action and follow-up 👍 If using the canary dist is just about If not, then how should I use the canary dist? |
Apparently the canary release for fix to this issue was not created https://github.com/facebook/docusaurus/runs/1927814807 |
@ArtFlag you can use canary versions found in https://www.npmjs.com/package/@docusaurus/core
|
Using these versions, I get scss modules errors in 2 of my components that I didn't have with the latest non-canary versions:
I'm still using |
Yes there's a bug in the sass plugin after we upgraded some depenczncies
I've opened a PR but it's not merged yet, but you can use the git fork as
dependency temporarily
Le sam. 20 févr. 2021 à 16:35, Arthur <[email protected]> a écrit :
… Using these versions, I get scss modules errors in 2 of my components that
I didn't have with the latest non-canary versions:
ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'onlyLocals'. These properties are valid:
object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }
@ ./docs/dev/entities.mdx
@ ./.docusaurus/registry.js
@ .***@***.***/core/lib/client/exports/ComponentCreator.js
@ ./.docusaurus/routes.js
@ .***@***.***/core/lib/client/clientEntry.js
@ multi ./node_modules/react-dev-utils/webpackHotDevClient.js .***@***.***/core/lib/client/clientEntry.js
I'm still using "docusaurus-plugin-sass": "^0.1.11". Is it expected or am
I doing something wrong?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4231 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PU5N4ARYBW6OEEXRIDS77JE3ANCNFSM4XX34IZQ>
.
|
Your fix works 🥳 ! Thanks 👍 |
🐛 Bug Report
I have a simple setup using the classic theme in which I've modified the admonition styling.
In my case, I have only overridden the
admonition
class andadmonition-tip|note|important
classes. I didn't touch thealert
class which is also used in the admonitions.yarn start
I get this, which I what I expect:yarn build
I get this, which is unexpected:Somehow, the classes are not in the same order, which might be the reason (??).
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Expected behavior
I should get the same visual output.
Actual Behavior
I do not get the same visual output.
Your Environment
Node v15.3.0
.FF 85.0.2
.Chrome 88.0.4324.150
MacOs 10.15.7
Reproducible Demo
See codesandbox but obviously that's not going to help build the packaged app.
The text was updated successfully, but these errors were encountered: