-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
feat(v2): allow to use array of files in customCss field #3474
feat(v2): allow to use array of files in customCss field #3474
Conversation
Deploy preview for docusaurus-2 ready! Built with commit 44ef7f5 |
@lex111 Yup, this PR should fix the mentioned issue by you too, but I have not added the Joi validator as Sebastien suggested in there. |
@Simek will you do that? Also we need to update the docs. |
@lex111 I'm not sure how to do this correctly, since Also it looks like an additional schema will be needed in |
I'm not very good at this either, alright, so let's wait until Sebastien comes back from vacation. |
For Joi validation add it in the classic theme option validation. |
- fix bug (push instead of concat) - update docs - add theme config validation + tests
Hey, I've added the validation. Also fixed a bug because using concat instead of push was no-op :) |
* feat(v2): allow to use array of files in customCss field * customCss array: - fix bug (push instead of concat) - update docs - add theme config validation + tests Co-authored-by: slorber <[email protected]>
Motivation
This small PR fixes the issue with server build when array of files was specified in
customCss
field in the theme classic preset configuration.CC @slorber
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Successful server build of React Native website with multiple files in
customCss
.Related PRs