I am working on a small pet-project which is primarily a java desktop application. It has a embedded web server (tomcat) to allow for remote control.
I have made the design decision to go all out with modern HTML technologies, netbeans has been able to provide all the relevant IDE features required EXCEPT SCSS auto-compile ( this works perfectly well on a HTML project) but this is a "Java Application" style project (as I want to embed all the static html/css/js content inside my jar deployable and then drive my desktop application via REST.
I guess you may be intressed in compiling your project with libsass . There are two implementations for Java . In this case it is easily integrated in the compilation
step.
If you are not satisfied with it, you can integrate a frontend task runner into your working environment. Consider different options : Grunt, Gulp, etc.
I personally use Grunt for my daily routine. When speaking about Grunt, you will need to install two tasks: grunt-sass
(it is different from grunt-contrib-sass
) and grunt-contrib-watch
. The second task compiles your .scss
or .sass
files on file-change. In this case you can have your .jar
file filled only with desired .css
files built for you by a task runner.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.