Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SASS/LESS preprocessor support for Spring Boot projects with JAR packaging #65

Open
AlexFalappa opened this issue Dec 30, 2016 · 1 comment

Comments

@AlexFalappa
Copy link
Owner

It would be nice to enable NetBeans SASS/LESS preprocessing support on files in the src/main/resources/static folder.

See #46 for some findings made by @janScheible on this matter

@janScheible
Copy link

Thank you @AlexFalappa for your answer and for opening that new issue.

  1. Changing packaging type to war works (thanks to http://hg.netbeans.org/main-silver/rev/306e875d1344) but is not the desired solution. jar packaging is the real beauty of Spring Boot. ;-)
  2. Current workaround is to use the LESS Maven plugin
    <plugin>
     <groupId>org.lesscss</groupId>
     <artifactId>lesscss-maven-plugin</artifactId>
     <executions>
         <execution>
             <id>less-compile</id>
         </execution>
     </executions>
     <configuration>
         <sourceDirectory>${project.basedir}/src/main/transient-resources/less</sourceDirectory>
         <outputDirectory>${project.basedir}/src/main/resources/static/css</outputDirectory>
         <compress>true</compress>
         <includes>
             <include>main.less</include>
         </includes>
     </configuration>
    </plugin>
    
    together with a Netbeans action like
    <action>
     <actionName>CUSTOM-LESS Compile (Watch)</actionName>
     <displayName>LESS Compile (Watch)</displayName>
     <goals>
         <goal>lesscss:compile</goal>
     </goals>
     <properties>
         <lesscss.watch>true</lesscss.watch>
     </properties>
    </action>
    
  3. I would be happy if anybody could give me some pointers how to implement this ticket. I simply have no experience with developing Netbeans plugins but I'm eager to know more. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants