Skip to content

Instantly share code, notes, and snippets.

@livingstonef
Created May 21, 2016 23:21
Show Gist options
  • Save livingstonef/38435c714796fedd2a4b388b54df2c9c to your computer and use it in GitHub Desktop.
Save livingstonef/38435c714796fedd2a4b388b54df2c9c to your computer and use it in GitHub Desktop.
#!/bin/sh
scss $2:$3 --quiet --update --no-cache && {
printf '\n<dom-module id="%s-style">\t\n<template>\t\t\n<style>\n' "$1"
cat $3
printf '\t\t\n</style>\t\n</template>\n</dom-module>'
} > "$1-style".html && rm -- "$3"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment