V
V
Vladimir T2014-03-05 17:32:35
Sass
Vladimir T, 2014-03-05 17:32:35

Where does the unknown path come from when working with sass in guard?

Hello,
System : Linux Mint 13.
Gems installed: guard, guard-sass, guard-compass, guard-livereload
Contents of the Guardfile file:

guard :compass
guard 'livereload' do
     watch(%r{.+\.(html|css|js)$})
end
guard 'sass', :input => 'sass', :output => 'css'

Content of config.rb file:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"

The contents of the screen.scss file
@import "compass/reset";
When compiling from *.scss to *.css and containing code that refers to compass, i.e. it
@import "compass/reset";
gives an error
ERROR - [Sass] Sass > Syntax error: File to import not found or unreadable: compass/reset.
> [#]               Load paths:
> [#]                 /home/user123/Desktop/test/public/stylesheets/sass
> [#]                 /home/user123/Desktop/test/sass
> [#]         on line 1 of sass/screen.scss

But the final file (*.css) does not contain any errors, i.e. a regular css file is generated.
The public and stylesheets folders do not exist.
Tell me, where does the guard take the wrong path (public/stylesheets) from?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question