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

libsass cannot find files on classpath with the watch command #65

Open
fahrenheit9 opened this issue Sep 12, 2017 · 1 comment
Open

Comments

@fahrenheit9
Copy link

When using the command "watch", it can't find the files on the classpath, however, it works as expected during the build.

Adrien

@jtrentes
Copy link

Hi,

I solved this problem by using "includePath" parameter.
In your pom file, define a maven variable named, for example, "style.includePath":

<properties>
    ...
    <style.includePath></style.includePath>
</properties>

Then use it in the plugin configuration:

<plugin>
    <groupId>com.github.warmuuh</groupId>
    <artifactId>libsass-maven-plugin</artifactId>
    ...
    <configuration>
        ...
        <includePath>${style.includePath}</includePath>
    </configuration>
</plugin>

Now you can easily custom the include path if you want to compile/watch your sass file without to build all dependent maven projects:

mvn libsass:watch -Dstyle.outputPath="/path/to/dependency/1;/path/to/dependency/2"

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