Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mervick committed Jun 9, 2015
1 parent 9038b17 commit c3dd415
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ But you can change it by destinationDir property from config
'scss' => array( // file extension to parse
'class' => 'nizsheanez\assetConverter\Sass',
'output' => 'css', // parsed output file type
'options' => array(),
'options' => array() // optional options
),
'less' => array( // file extension to parse
'class' => 'nizsheanez\assetConverter\Less',
Expand All @@ -107,3 +107,30 @@ But you can change it by destinationDir property from config
),

~~~

Also, for SCSS files you can use alternate configuration:

~~~php
'components' => array(
'assetManager' => array(
'converter'=>array(
// ...
'parsers' => array(
// ...
'scss' => array( // file extension to parse
'class' => 'nizsheanez\assetConverter\Scss',
'output' => 'css', // parsed output file type
'options' => array( // optional options
'enableCompass' => true, // default is true
'importPaths' => array(), // import paths, you may use path alias here,
// e.g., `['@path/to/dir', '@path/to/dir1', ...]`
'lineComments' => false, // if true — compiler will place line numbers in your compiled output
'outputStyle' => 'nested', // May be `compressed`, `crunched`, `expanded` or `nested`,
// see more at http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
),
),
),
),
),
// ...
~~~

0 comments on commit c3dd415

Please sign in to comment.