leonids | A simple , fixed sidebar two columns Gatsby.js blog starter | Blog library
kandi X-RAY | leonids Summary
kandi X-RAY | leonids Summary
A blazing fast static blog theme built on Gatsby.js. See a demo hosted on GitHub pages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leonids
leonids Key Features
leonids Examples and Code Snippets
Community Discussions
Trending Discussions on leonids
QUESTION
I've been looking around for hours, yet I can't find any explanation that fits with my situation.
Every time I build my project, I get this same error:
...ANSWER
Answered 2021-Feb-01 at 14:52I have found the answer to this myself. It turns out it has to do with certain firebase implementations.
Google has created a package to counter this
To solve this conflict, simply add this to your app-level build.gradle
;
QUESTION
I'm working on my Gatsby blog/site based on this Leonids starter. Made some changes to add functionality that fits my needs, including using .mdx
files to write pages and posts, so that I can add JS inside MD.
When working and previewing the site with gatsby develop
everything looks good. Now when going on production, Tailwind classes that are used in components within .mdx
files are not rendered. Tried importing the global.css
file which includes @tailwind utilities
into an mdx with no luck. Classes appear in the inspector, but don't present any styles in the CSS.
When Tailwind classes are used in tsx or js files, they work. But not when I use them in components that are styled with these classes within mdx files.
So what is really changing when building the prod site and the develop site? I don't really have a clue on what to try next since there are no errors nor warnings whatsoever.
This is the repo to the site. And this is an example of a button not picking up Tailwind's classes.
Why does this happen?
Thank you all! Hope I brought enough info.
Cheers!
...ANSWER
Answered 2020-Nov-24 at 20:04For anyone who stumbles upon this issue, what happened was that TailwindCSS uses PurgeCSS to cleanup any unused classes. This cleanup is done on production builds only, at dev, they are always available for quick changes.
I just had to add .mdx
to the exclusion list in tailwind.config.js
file. Like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leonids
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page