Skip to content

Instantly share code, notes, and snippets.

@andrewk
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewk/ed0ec1ab096cec79ca27 to your computer and use it in GitHub Desktop.
Save andrewk/ed0ec1ab096cec79ca27 to your computer and use it in GitHub Desktop.
Sass include paths - bower vs npm
# watch assets for changes in development, using bower deps
watch:
sass -I assets/scss -I bower_components --watch assets/scss:public/css
# watch assets for changes in development, using npm deps
watch:
sass $(foreach d, $(shell find . -name 'node_modules' -type d), -I$d) -I assets/scss --watch assets/scss:public/css
# and what does that `find` call look like in reality?
# ~/Projects/99designs/contests find . -type d -name 'node_modules' | wc -l
# 259
#
# with bower - 2 include paths.
# with npm - 260 include paths.
# and this is a PHP project!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment