Commit 093be1a3 by Alexander Makarov

Merge pull request #4695 from damiandennis/sourceMaps

added source map generation so that styling can be debugged easily.
parents 3dd516e4 aec7dca2
...@@ -27,9 +27,9 @@ class AssetConverter extends Component implements AssetConverterInterface ...@@ -27,9 +27,9 @@ class AssetConverter extends Component implements AssetConverterInterface
* target script types (either "css" or "js") and the commands used for the conversion. * target script types (either "css" or "js") and the commands used for the conversion.
*/ */
public $commands = [ public $commands = [
'less' => ['css', 'lessc {from} {to} --no-color'], 'less' => ['css', 'lessc {from} {to} --no-color --source-map'],
'scss' => ['css', 'sass {from} {to}'], 'scss' => ['css', 'sass {from} {to} --sourcemap'],
'sass' => ['css', 'sass {from} {to}'], 'sass' => ['css', 'sass {from} {to} --sourcemap'],
'styl' => ['js', 'stylus < {from} > {to}'], 'styl' => ['js', 'stylus < {from} > {to}'],
'coffee' => ['js', 'coffee -p {from} > {to}'], 'coffee' => ['js', 'coffee -p {from} > {to}'],
'ts' => ['js', 'tsc --out {to} {from}'], 'ts' => ['js', 'tsc --out {to} {from}'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment