Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #390 from thetiby/master
Browse files Browse the repository at this point in the history
Added CleanCSS filter config
  • Loading branch information
kriswallsmith committed Dec 3, 2015
2 parents 9ad8456 + 737d5b6 commit d444bd0
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions Resources/config/filters/cleancss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="assetic.filter.cleancss.class">Assetic\Filter\CleanCssFilter</parameter>
<parameter key="assetic.filter.cleancss.bin">/usr/bin/cleancss</parameter>
<parameter key="assetic.filter.cleancss.node">%assetic.node.bin%</parameter>
<parameter key="assetic.filter.cleancss.node_paths">%assetic.node.paths%</parameter>
<parameter key="assetic.filter.cleancss.keep_line_breaks">false</parameter>
<parameter key="assetic.filter.cleancss.compatibility">false</parameter>
<parameter key="assetic.filter.cleancss.debug">false</parameter>
<parameter key="assetic.filter.cleancss.root_path">null</parameter>
<parameter key="assetic.filter.cleancss.skip_import">true</parameter>
<parameter key="assetic.filter.cleancss.timeout">null</parameter>
<parameter key="assetic.filter.cleancss.rounding_precision">null</parameter>
<parameter key="assetic.filter.cleancss.remove_special_comments">false</parameter>
<parameter key="assetic.filter.cleancss.only_keep_first_special_comment">true</parameter>
<parameter key="assetic.filter.cleancss.set_semantic_merging">false</parameter>
<parameter key="assetic.filter.cleancss.skip_advanced">true</parameter>
<parameter key="assetic.filter.cleancss.skip_aggresive_merging">true</parameter>
<parameter key="assetic.filter.cleancss.skip_import_from">null</parameter>
<parameter key="assetic.filter.cleancss.media_merging">true</parameter>
<parameter key="assetic.filter.cleancss.skip_rebase">true</parameter>
<parameter key="assetic.filter.cleancss.skip_restructuring">true</parameter>
<parameter key="assetic.filter.cleancss.skip_shorthand_compacting">true</parameter>
<parameter key="assetic.filter.cleancss.source_map">false</parameter>
<parameter key="assetic.filter.cleancss.source_map_inline_sources">false</parameter>

</parameters>

<services>
<service id="assetic.filter.cleancss" class="%assetic.filter.cleancss.class%">
<tag name="assetic.filter" alias="cleancss" />
<argument>%assetic.filter.cleancss.bin%</argument>
<argument>%assetic.filter.cleancss.node%</argument>
<call method="setNodePaths"><argument>%assetic.filter.cleancss.node_paths%</argument></call>
<call method="setKeepLineBreaks"><argument>%assetic.filter.cleancss.keep_line_breaks%</argument></call>
<call method="setRemoveSpecialComments"><argument>%assetic.filter.cleancss.remove_special_comments%</argument></call>
<call method="setOnlyKeepFirstSpecialComment"><argument>%assetic.filter.cleancss.only_keep_first_special_comment%</argument></call>
<call method="setSemanticMerging"><argument>%assetic.filter.cleancss.set_semantic_merging%</argument></call>
<call method="setRootPath"><argument>%assetic.filter.cleancss.root_path%</argument></call>
<call method="setSkipImport"><argument>%assetic.filter.cleancss.skip_import%</argument></call>
<call method="setTimeout"><argument>%assetic.filter.cleancss.timeout%</argument></call>
<call method="setSkipRebase"><argument>%assetic.filter.cleancss.skip_rebase%</argument></call>
<call method="setSkipRestructuring"><argument>%assetic.filter.cleancss.skip_restructuring%</argument></call>
<call method="setSkipShorthandCompacting"><argument>%assetic.filter.cleancss.skip_shorthand_compacting%</argument></call>
<call method="setSourceMap"><argument>%assetic.filter.cleancss.source_map%</argument></call>
<call method="setSourceMapInlineSources"><argument>%assetic.filter.cleancss.source_map_inline_sources%</argument></call>
<call method="setSkipAdvanced"><argument>%assetic.filter.cleancss.skip_advanced%</argument></call>
<call method="setSkipAggresiveMerging"><argument>%assetic.filter.cleancss.skip_aggresive_merging%</argument></call>
<call method="setSkipImportFrom"><argument>%assetic.filter.cleancss.skip_import_from%</argument></call>
<call method="setMediaMerging"><argument>%assetic.filter.cleancss.media_merging%</argument></call>
<call method="setRoundingPrecision"><argument>%assetic.filter.cleancss.rounding_precision%</argument></call>
<call method="setCompatibility"><argument>%assetic.filter.cleancss.compatibility%</argument></call>
<call method="setDebug"><argument>%assetic.filter.cleancss.debug%</argument></call>
</service>
</services>
</container>

0 comments on commit d444bd0

Please sign in to comment.