Skip to content

Instantly share code, notes, and snippets.

@chipcullen
Created December 13, 2012 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chipcullen/4276592 to your computer and use it in GitHub Desktop.
Save chipcullen/4276592 to your computer and use it in GitHub Desktop.
A fix for Drupal and Codekit. As described here - http://www.nickcomito.me/notebook/codekit-doesnt-refresh-after-compiling-sass-drupal - Codekit and Drupal don't get a long right out of the box. Add this to your html.tpl.php right after <?php print $styles; ?> and your SASS changes will be injected per normal via Codekit. Big shout out to Nick C…
<link rel="stylesheet" href="/<?php print path_to_theme(); ?>/css/style.css" />
@grahambates
Copy link

Hey. I've developed a module which provides a more robust solution for this problem:
http://drupal.org/project/link_css

It forces Drupal to load all CSS using link elements and avoids the need to manually add links for each stylesheet.

@chipcullen
Copy link
Author

I'm sorry - I'm only seeing your comment now. That module looks pretty sweet - thank you for pointing it out!

@chipcullen
Copy link
Author

I tried your module out, and it works great! I even blogged about the whole thing: http://chipcullen.com/drupal-codekit-try-link-css/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment