Skip to content
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

CSS change not reflected in production #35

Open
Stig11686 opened this issue Jul 12, 2021 · 5 comments
Open

CSS change not reflected in production #35

Stig11686 opened this issue Jul 12, 2021 · 5 comments

Comments

@Stig11686
Copy link

Great template!

I'm trying to make a small css change which is working in dev environment but not in production when deployed to netlify. Where do I start with this?!

Thanks!

@emcog
Copy link

emcog commented Sep 10, 2021

Have the same issue. Dev looks great but production doesn't carry across styles – font's etc. Really like Skeleventy and am reluctant to pick up a new template.

@emcog
Copy link

emcog commented Sep 10, 2021

This could be an issue with google font when served from Netlify. I removed them from base.njk and it builds as intended. Without the fonts of course.

@Stig11686
Copy link
Author

I think my issue relates to SCSS not compiling on build

@kct2020
Copy link

kct2020 commented Mar 7, 2022

I had a similar problem deploying to Cloudflare Pages after changing SCSS.
I'm sorry that I can't recall the exact steps I took, but I think it involved a temporary change to deployment settings to: npm run dev.
So I'm guessing that changing the command line in netlify.toml should work.
Hope that works, and sorry I can't be more definitive for now.

@Stig11686
Copy link
Author

My issue solved: It was because I was trying to edit dynamically created elements and purge css - so the css was getting purged before the elements were being created. Solved by whitelisting the classes required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants