-
Notifications
You must be signed in to change notification settings - Fork 14
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
get.gov 11ty not rebuilding on sass changes #705
Comments
Tested out two fixes:
The drawback to the first solution is that any change will cause the The draw back to the second solution is that we would need to maintain a separate In addition to the above, I also tried a couple of things that did not work. I tried adding lines in the config to remove
I've reached out to the cloud.gov pages team to see if there is another suggestion besides the two solutions above. |
After reaching to the cloud.gov pages team @caleywoods, who worked on the template suggested removing the file from the local gitignore and instead adding it to the global gitignore. This worked great! But if someone doesn't have a global gitignore they would need to create a new file. Another alternative that seems to work is adding the file to the project local |
Marked as "later" due to not being a critical issue. |
Ticket Description
While @gabydisarli was testing out the documentation for working with GitHub, she pointed out that the styles were not displaying. In addition to a first-time build, this issue can come up whenever only a
.scss
file is updated (that is, when there are no changes later made to a.html
or.md
file). The problem is that when the scss file is changed styles get recompiled into astyles-<hash>.css
file with a new cache-busting hash number. Although this is is updated in theassetPaths.json
file, the header referencing the stylesheet does not seem to get rebuilt. This results in the header referencing an outdated (i.e. deleted) styles file, so the styles do not pull in. A simple workaround to trigger the header rebuild is to save any.html
or.md
file. However we should figure out a more robust solution for the build process.Issue Type
development
Link dependent issues
No response
The text was updated successfully, but these errors were encountered: