Open the configuration of cleanCSS arguments #483

Closed
jbrey opened this Issue Apr 24, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@jbrey
Contributor

jbrey commented Apr 24, 2015

Hi

Would it possible to set the arguments of cleanCss in order to customize it from the pom ?

Thanks
JB

@cescoffier cescoffier added the planned label Apr 24, 2015

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Apr 24, 2015

Member

Definitely

Those parameters would completely override the default parameter used by the mojo.
The parameter would probably be cleanCssArgument (a String)

Member

cescoffier commented Apr 24, 2015

Definitely

Those parameters would completely override the default parameter used by the mojo.
The parameter would probably be cleanCssArgument (a String)

@cescoffier cescoffier added this to the 0.8.1 milestone Apr 24, 2015

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier Apr 24, 2015

Member

CLI reference:
https://github.com/jakubpawlowicz/clean-css

cleancss [options] source-file, [source-file, ...]

-h, --help                      Output usage information
-v, --version                   Output the version number
-b, --keep-line-breaks          Keep line breaks
--s0                            Remove all special comments, i.e. /*! comment */
--s1                            Remove all special comments but the first one
-r, --root [root-path]          A root path to which resolve absolute @import rules
                                and rebase relative URLs
-o, --output [output-file]      Use [output-file] as output instead of STDOUT
-s, --skip-import               Disable @import processing
--skip-rebase                   Disable URLs rebasing
--skip-advanced                 Disable advanced optimizations - selector & property merging,
                                reduction, etc.
--skip-aggressive-merging       Disable properties merging based on their order
--skip-media-merging            Disable `@media` merging
--skip-restructuring            Disable restructuring optimizations
--skip-shorthand-compacting     Disable shorthand compacting
--rounding-precision [N]        Rounds to `N` decimal places. Defaults to 2. -1 disables rounding.
-c, --compatibility [ie7|ie8]   Force compatibility mode (see Readme for advanced examples)
--source-map                    Enables building input's source map
--source-map-inline-sources     Enables inlining sources inside source map's `sourcesContent` field
-d, --debug                     Shows debug information (minification time & compression efficiency)
Member

cescoffier commented Apr 24, 2015

CLI reference:
https://github.com/jakubpawlowicz/clean-css

cleancss [options] source-file, [source-file, ...]

-h, --help                      Output usage information
-v, --version                   Output the version number
-b, --keep-line-breaks          Keep line breaks
--s0                            Remove all special comments, i.e. /*! comment */
--s1                            Remove all special comments but the first one
-r, --root [root-path]          A root path to which resolve absolute @import rules
                                and rebase relative URLs
-o, --output [output-file]      Use [output-file] as output instead of STDOUT
-s, --skip-import               Disable @import processing
--skip-rebase                   Disable URLs rebasing
--skip-advanced                 Disable advanced optimizations - selector & property merging,
                                reduction, etc.
--skip-aggressive-merging       Disable properties merging based on their order
--skip-media-merging            Disable `@media` merging
--skip-restructuring            Disable restructuring optimizations
--skip-shorthand-compacting     Disable shorthand compacting
--rounding-precision [N]        Rounds to `N` decimal places. Defaults to 2. -1 disables rounding.
-c, --compatibility [ie7|ie8]   Force compatibility mode (see Readme for advanced examples)
--source-map                    Enables building input's source map
--source-map-inline-sources     Enables inlining sources inside source map's `sourcesContent` field
-d, --debug                     Shows debug information (minification time & compression efficiency)

@cescoffier cescoffier self-assigned this Apr 24, 2015

@cescoffier cescoffier added enhancement ready and removed planned labels Apr 24, 2015

@jbrey

This comment has been minimized.

Show comment
Hide comment
@jbrey

jbrey Apr 24, 2015

Contributor

seems ok.

Contributor

jbrey commented Apr 24, 2015

seems ok.

@cescoffier cescoffier added in progress and removed ready labels Apr 24, 2015

@cescoffier cescoffier removed the in progress label Apr 24, 2015

@jbrey

This comment has been minimized.

Show comment
Hide comment
@jbrey

jbrey May 22, 2015

Contributor

very useful ! :)

Contributor

jbrey commented May 22, 2015

very useful ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment