vaadin / sass-compiler

A Java Sass compiler implementation
53 stars 26 forks source link

Support compressing the output of the Sass compiler #297

Closed vaadin-bot closed 8 years ago

vaadin-bot commented 9 years ago

Originally by @hesara


In addition to minifying the Sass compiler output (#10812), it should be possible to gzip it straight from the sass compiler. This would allow #13653 to serve the compressed file directly if the gzipped file is present.

This should probably be activated by an option -compress:true/false (default to be decided) and produce styles.css.gz alongside with styles.css . Currently, this option conflicts with #10812 - to be fixed.

When implementing this, we should make sure the framework also takes advantage of this (create a separate ticket if needed).


Imported from https://dev.vaadin.com/ issue #17773

vaadin-bot commented 8 years ago

Originally by @hesara


Implemented a version of this with default "false" - will submit for review after some testing.

vaadin-bot commented 8 years ago

Originally by @hesara


Under review at https://dev.vaadin.com/review/#/c/12566/

mvysny commented 7 years ago

To enable the compression in Maven just add the compressTheme configuration option as follows:

<plugin>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-maven-plugin</artifactId>
    <version>${vaadin.plugin.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>update-theme</goal>
                <goal>update-widgetset</goal>
                <goal>compile</goal>
                <!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
                <goal>compile-theme</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <compressTheme>true</compressTheme>
    </configuration>
</plugin>