Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Fix imported sass not updating #5

Merged
merged 13 commits into from
Oct 7, 2013

Conversation

rebelzach
Copy link

I've made a few additions to help with --watch mode. This PR updates the generator to keep track of sass files that also start with underscores, if any sass files are modified it triggers a full sass update. This corrects an issue where file a.sass imports file _b.sass updating file _b.sass does not cause a.sass to re-render.

Other updates

  • Fix - compile_in_place may not find the correct path if the destination is not in the _site directory
  • Added - deploy_style key to config so that building can automatically generate a different style css file (ie. expanded for watch mode and compressed for deployment)
  • Removed - syntax key from config. Syntax is now inferred from the file extension (just like the sass gem cli)
  • Documentation updates

Anyway, I've found these changes to be helpful with my current jekyll setup. Let me know your thoughts.

also renamed root_destination to be in_place_destination to better reflect its purpose
This method is already using site.static_files doesn't seem necessary to conditionally check the class.
…l practice.

Also implemented accessor methods directly.
Config that defaults to expanded when watching (for debugging css), compressed when building.
It's probably best to let other errors crash jekyll. A write issue is an indicator of deeper problems. Syntax can be corrected while jekyll is still running.
Because there is often pretty deep linking in sass, rebuilding only one changed sass file doesn't update dependent files. Also, files with underscores are ignored by jekyll, its important for sass to rebuild when these files are modified.
Using the for_file initializer for the sass engine, it auto detects the syntax via the file name. Updated docs as well.
noct added a commit that referenced this pull request Oct 7, 2013
Dependent update fix, deploy_style, and syntax detection
@noct noct merged commit c387383 into noct:master Oct 7, 2013
@noct
Copy link
Owner

noct commented Oct 7, 2013

Sorry I took so long to get to this, great stuff @rebelzach!

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

Successfully merging this pull request may close these issues.

2 participants