This is an AMP version of the article, its original content can be found here.
SASS in Java Webapp
SASS is a powerful and very popular language for writing CSS style sheets. This is how I'm using SASS in my Maven projects.
First, I change the extensions of
.css files to
.scss and move them from
Then, I configure the sass-maven-plugin (get its latest versions in Maven Central):
The SASS compiler will compile
.scss files from
src/main/scss and place
.css files into
Then, I configure the minify-maven-plugin to compress/minify the style sheets produced by the SASS compiler:
.css files will be placed into
The final step is to configure the
to pick up
.css files and package them into the final WAR archive: