Automatic compilation of SCSS in netbeans plain java project

I am working on a small home project, which is primarily a Java applet. It has a built-in web server (tomcat) allowing remote control.

I took the design decision hard with modern HTML technologies, netbeans was able to provide all the necessary IDE functionality needed to automatically compile EXCEPT SCSS (this works great in an HTML project), but this is a "Java Application" (since I want to inject all static html / css / js content in my jar and then run my desktop app via REST.

+3


source to share


1 answer


I think you might be involved in compiling your project with libsass . There are two Java implementations . In this case it is easily integrated on stage compilation

.

If that doesn't suit you, you can integrate an external command line runner into your work environment. Let's take a look at the various options : Grunt, Gulp, etc.



I personally use Grunt for my daily life. Speaking of Grunt, you will need to install two tasks: grunt-sass

(this is different from grunt-contrib-sass

) and grunt-contrib-watch

. The second task compiles your files .scss

or .sass

when the file changes. In this case, your file .jar

can only be populated with the desired .css

files created for you by the task slider.

+2


source







All Articles