Skip to content

Instantly share code, notes, and snippets.

@founddrama
Created February 13, 2011 18:03
Show Gist options
  • Save founddrama/824902 to your computer and use it in GitHub Desktop.
Save founddrama/824902 to your computer and use it in GitHub Desktop.
Sometimes `sass --style compressed` is overkill; here's how to maximize what's built in without losing your important license comment.
#!/bin/sh
echo "Initializing style.css with license text..."
touch style.css
cat _license.txt > style.css
echo "Compiling Sass to style.css..."
# note that omitting the [OUTPUT] param writes to stout
sass --style compressed src/scss/style.scss >> style.css
@chriskempson
Copy link

Just tell SASS your comment is important buy using ! e.g /*! [license] */ instead of /*! [license] */

@chriskempson
Copy link

instead of /* [license] */ sorry

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