Is it possible to use SCSS in a Java project

Question from Senhor#3353

hi

i have one question: is it possible to use SCSS in a Java project? I am currently generating PDF from HTML pages; i craft these pages with html and pure css, and i was wondering if there's a way to use SCSS instead

Sure, but you are going to need to do some plumbing.

SCSS is built in JS so there really isn't a way to include it as part of a java build system.

You will need to install it with npm separately either globally, or in a project in the directory where you need to run your jar.

Then you need to invoke scss to generate CSS files.

You can do this through ProcessBuilder, so it is definitely doable - just not frictionless.


<- Index