On the fly LESS compiler for java web app?

后端 未结 3 786
暗喜
暗喜 2021-02-02 15:57

I am looking for a way to compile CSS LESS files on the server side on demand during development. For example if the browser makes a request to /assets/css/foo.css I want the se

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 16:26

    What we do is we have two modes : dev and production.

    For dev, use the official less css js compiler, which compiles on the fly:

    
    
    
    

    in your HTML

    for prod, use the compiled styles by https://github.com/marceloverdijk/lesscss-maven-plugin

    
    

提交回复
热议问题