I am trying to get SASS working with an Atlassian plugin for Confluence. I have tried a number of ways to do it, including compiling the .css on the side and then importing it via the atlassian-plugin.xml. This works fine, but it would be really nice to include it in some kind of package building step.
Does anybody have any experience of working with SASS (or any other CSS preprocessor) and Atlassian development?
Community moderators have prevented the ability to post new answers.
I found a solution that partially works. Basically I ended up using a Maven plugin from Jasig to compile the css when packaging the code and the standard sass watcher for daily development.
The Jasig SASS Maven Plugin can be found here, https://github.com/Jasig/sass-maven-plugin, and I used this guide to set i up in the POM file of my project: http://maciejwalkowiak.pl/blog/2013/06/03/using-sass-in-java-web-applications/.
I haven't worked a great deal with Maven before so I found the guide to be quite helpful.
It works fine when running atlas-mvn package but I would also like have it working with the atlas-cli pi command. However it seems like atlas-cli does not run the phases in the same way maven would, https://ecosystem.atlassian.net/browse/AMPS-381.
It would be very interesting to be able to run the maven recipe or at least parts of it from atlas-cli, since we rely quite heavily on it in our development cycle.
Found the Jasig SASS Maven plugin. It looks really interesting, just trying to get it to run when packaging the jar file. I'll keep you updated of my progress.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.