Best way to autocompile SASS in compass style via maven

referring to the SASS implementation for Java? :

What is the best way to automatically compile compass-style.org style sheets in compiling maven, respectively, of a package?

I would not want to send too many self-compiled libraries and I do not want to dynamically send compiled files through filters such as https://code.google.com/p/sass-java ( https://github.com/darrinholst/sass-java )

Any alternatives than connecting shellscripts / ant scripts that require installed ruby ​​and compass on the client?

What is the detailed difference between the SASS and Compass stylesheets, any problems with the sass-tools when using the compass regularly? => What mvn plugins are a "compass" ?!

+5
source share
4 answers

I suppose you know about this Maven plugin (mentioned in the SASS implementation for Java? ) ?: https://github.com/Jasig/sass-maven-plugin

(I have not tried this myself.)

UPDATE: this plugin is no longer supported. However, this fork seems healthy now, so for some it might be an option: https://github.com/GeoDienstenCentrum/sass-maven-plugin

+4
source
+6

(java, Wicket, Zurb Foundation, node -sass depebndency lib-sass). , maven - , scss . ( .) , npm, maven. Npm src/main/webapp/ "myDir". git. jason :

"scripts": {
    ....
    "build-css": "node node_modules/node-sass/bin/node-sass --include-path myScssDir myScssDir/myScss.scss --output  src/main/webapp/myDir/css",
    ....
}

maven, css . ( "myDir" dir), mkdirp. :

"scripts": {
    "create-dirs": "mkdirp src/main/webapp/myDir/",
    ....
}

, "npm i" node -modules. gitignored.

"npm run create-dirs", myDir. gitignored.

"npm run build-css" css-s js-s myDir.

, maven.

hudson/jenkins .

, , - npm ant maven. , .

// : Windows7, npm. npm, : https://superuser.com/questions/104845/permission-to-make-symbolic-links-in-windows-7

0

I used the Sass Maven plugin from nl.geodienstencentrum.maven, but it uses Ruby and is very slow.

Now I switched to: Libsass Maven plugin

https://github.com/warmuuh/libsass-maven-plugin

This uses C, and our compilation times are much shorter (from 8.6 seconds to → 2 seconds)

0
source

All Articles