Explain "watch"
cowwoc opened this issue · 6 comments
Please document how http://developer.jasig.org/projects/sass-maven-plugin/1.1.1/watch-mojo.html is supposed to work.
I assume this is supposed to watch SCSS files and every time they get modified update the corresponding CSS file.
Thing is, what starts/stops the watch process?
I run my development server using "mvn exec:exec". Is there a way for me to cause the "watch" process to run so long as that server is up?
I think you will need to run a second Maven process to have sass-maven-plugin
watch+compile your sass files.
Basically watch
runs in an endless loop that needs an interrupt/kill signal eg. to end see: http://sass-lang.com/documentation/file.SASS_REFERENCE.html for sass --watch
@mprins Okay, but is there an example of how to integrate this into pom.xml
? I mean, are we supposed to manually run "mvn sass-maven-plugin:watch" from command-line or does watch
go into its own <execution>
somehow?
I configure sass-maven-plugin in my pom and use mvn org.jasig.maven:sass-maven-plugin:watch
when I want to run it. eg I have this pom https://github.com/MinELenI/CBSviewer/blob/master/pom.xml#L474 which compiles css as part of the process-sources during a normal build but since the config is not execution specific it is shared across all maven invocations.
Next to it I run a new process (a new console) mvn jetty:run
that runs my webapplication, Jetty will pick up the changed, compiled css from the target directory
Sounds good. Can you please add this explanation to the documentation somewhere?
I'm not a committer on this project, your patch is as good as mine
This version is no longer maintained. Refer to more recent forks at https://github.com/Jasig/sass-maven-plugin/network for more up to date versions.