Compass on Win using relative paths outside the Compass dir project

I used Sass on an existing site and decided to run Compass on Win7x64. Ruby, HAML, Compass everything is installed perfectly (afaik).

I have a project in c:\projectwith static files that were from c:\project\staticwith a directory structure that should remain the same . I logged in c:\project\staticand ran this:

compass create css-compass

This led to the following dir structure

c:\project\static\css (previously existed; output css)
c:\project\static\css-sass (previously existed; source css)
c:\project\static\css-compass (the new compass dir created by compass)    

And here is my config.rb:

# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "..\\css"
sass_dir = "..\\css-sass"
images_dir = "images"
javascripts_dir = "javascripts"

When I go to c:\project\staticand run compass watch compass-css, I get the following error:

Do not compile anything. If you are trying to start a new project, you left out the directory argument. Run "compass -h" to get help.

, c:\project\static\css-compass css->..\css css-sass => ..\css-sass, .

?

+3
2

Facepalm

, relative_assets = true config.rb. , . , !

+7

im late:-)

project_path

project_path    = "../src/main/webapp/"

: grunt-contrib-compass

0

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


All Articles