From aec7dca2cd53fb93997d8074f237f2f7879430ef Mon Sep 17 00:00:00 2001 From: Damian Dennis Date: Wed, 13 Aug 2014 12:48:41 +1000 Subject: [PATCH] added source map generation so that styling can be debugged easily. --- framework/web/AssetConverter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/web/AssetConverter.php b/framework/web/AssetConverter.php index c1d74c2..022ca06 100644 --- a/framework/web/AssetConverter.php +++ b/framework/web/AssetConverter.php @@ -27,9 +27,9 @@ class AssetConverter extends Component implements AssetConverterInterface * target script types (either "css" or "js") and the commands used for the conversion. */ public $commands = [ - 'less' => ['css', 'lessc {from} {to} --no-color'], - 'scss' => ['css', 'sass {from} {to}'], - 'sass' => ['css', 'sass {from} {to}'], + 'less' => ['css', 'lessc {from} {to} --no-color --source-map'], + 'scss' => ['css', 'sass {from} {to} --sourcemap'], + 'sass' => ['css', 'sass {from} {to} --sourcemap'], 'styl' => ['js', 'stylus < {from} > {to}'], 'coffee' => ['js', 'coffee -p {from} > {to}'], 'ts' => ['js', 'tsc --out {to} {from}'],