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

mvn libsass:watch custom output path #81

Open
bpetridean opened this issue Sep 2, 2019 · 3 comments
Open

mvn libsass:watch custom output path #81

bpetridean opened this issue Sep 2, 2019 · 3 comments

Comments

@bpetridean
Copy link

While running in watch mode the Output Path is set to target by default, how can I set it to another location?

Thanks,
Bogdan.

@warmuuh
Copy link
Owner

warmuuh commented Sep 2, 2019

it should work similarly to how you set up the output path normally, see https://github.com/warmuuh/libsass-maven-plugin/blob/master/README.md#usage

@bpetridean
Copy link
Author

bpetridean commented Sep 2, 2019

I have the following config in my pom.xml

 <plugin>
               <groupId>com.github.warmuuh</groupId>
               <artifactId>libsass-maven-plugin</artifactId>
               <version>${libsass.version}</version>
               <executions>
                   <execution>
                       <phase>generate-resources</phase>
                       <goals>
                           <goal>compile</goal>
                       </goals>
                       <configuration>
                           <inputPath>${project.basedir}/src/main/sass/assets/style/</inputPath>
                           <outputPath>${webappDirectory}/assets/style/</outputPath>
                           <sourceMapOutputPath>${webappDirectory}/assets/style/</sourceMapOutputPath>
                           <outputStyle>compressed</outputStyle>
                       </configuration>
                   </execution>
               </executions>
           </plugin>

Which works just fine upon compilation.

Then, for the css developers I also wanna activate the watcher and I do this:

mvn -X libsass:watch and the Output Path is set to .../target

Is there a way to set the outputPath through cmd line args?
e.g. mvn -X libsass:watch -DoutputPath="/custom"

Thank you.

@warmuuh
Copy link
Owner

warmuuh commented Sep 2, 2019

try putting the configuration like i linked (not inside execution but inside the tag. this will then be picked up by "manual" executions of direct goals afaik.

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

No branches or pull requests

2 participants