From be889c3d116556bdc06a808ac50815012ce9538a Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 7 Aug 2014 11:01:13 +0200 Subject: [PATCH] consolegen.php --- consolegen.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 consolegen.php diff --git a/consolegen.php b/consolegen.php new file mode 100644 index 00000000..d3aeeae1 --- /dev/null +++ b/consolegen.php @@ -0,0 +1,44 @@ +setFormatter("scss_formatter_compressed"); +$fh = fopen($options['workdir'].DIRECTORY_SEPARATOR.$options['outfile'], 'w'); +fwrite($fh, $scss->compile(preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', file_get_contents($options['workdir'].DIRECTORY_SEPARATOR.$options['infile'])))); +fclose($fh); + +?>