Hey,
we started testing the Confluence 9.5.0-rc1 build and as we installed our plugins we saw that most of our less which should be transformed by the less-transformer plugin was not transformed. Does anyone else run into this problem?
I couldn’t find any changes in the 9.5 changelog that lead to an answer for this problem.
Best regards
Florian
Update: Made a quick test against the just released 9.5.1 version, still not working.
The timeline states that it reaches EOL with 9.2 and “By the end of 2025, we’re removing the Less web-resource transformer from all Data Center products in their next major versions: Jira Software 11, Jira Service Management 11, Confluence 10, Bitbucket 10, Bamboo 11, and Crowd 7.” so I guess a minor update should still not break apps compatible with previous versions like 9.4 or 9.2
I personally just use SCSS / SASS and let IntelliJ file watchers compile it…
As CSS nesting is widely available and depending on the features you need, you may just stick to plain CSS.
But for Maven you can do it like this:
<properties>
<dart.sass.version>1.19.1</dart.sass.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.github.cleydyr</groupId>
<artifactId>dart-sass-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<inputFolder>src/main/resources/assets</inputFolder>
<outputFolder>target/classes/assets</outputFolder>
<version>${dart.sass.version}</version>
</configuration>
<executions>
<execution>
<id>generate-css-using-sass</id>
<phase>generate-resources</phase>
<goals>
<goal>compile-sass</goal>
</goals>
</execution>
</executions>
</plugin>