Compiling sass via sass-maven-plugin and susy

I have been trying for a long time to get sass-maven-plugin to use susy when compiling sass code using a compass without success.
The final attempt includes the following code and the assumption that susy.scss files are really all that is needed:

pom.xml:

<plugin> <groupId>org.jasig.maven</groupId> <artifactId>sass-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <useCompass>true</useCompass> </configuration> <executions> <execution> <goals> <goal>update-stylesheets</goal> </goals> </execution> </executions> </plugin> 

And in my project root folder, I have the following in my config.rb:

 http_path = "src/main/webapp" css_dir = "src/main/webapp/skin/stylesheets" sass_dir = "src/main/webapp/skin/sass" images_dir = "src/main/webapp/skin/images" 

Which indicates all the correct folders, and they are found correctly.
So far so good.

In my sass folder, I have a .scss file that contains: @import: "susy" , and in this folder I put a _susy.scss file that contains:

 @import "susy/support"; @import "susy/units"; @import "susy/settings"; ... 

Running compass install compass in the root folder works when I have a compass, but not suspicious, installed in my ruby ​​setting, which means that it works fine, right?

The problem is that when I run mvn clean install -e in the root of the project, I get the following error message:

 [ERROR] Compilation of template C:/Users/.../skin/sass/XXX.scss failed: different prefix: "" and "C:/Users/.../trunk/target/[warname]/skin/sass" 

Am I even in the right soccer field, or am I completely off?

+4
source share

Source: https://habr.com/ru/post/1481150/


All Articles