project
config.rb
assets
images
javascript
stylesheets
css
sass
In config.rb I have tried setting my css_dir path to "assets/
stylesheets/css" and sass_dir to "assets/stylesheets/sass" but
whenever I put a watch on my stylesheets directory it runs OK but then
creates another "stylesheets" folder inside of stylesheets like this:
stylesheets
css
sass
stylesheets
An in that new 'stylesheets" folder is where it places my compiled CSS
files instead of in the "css" directory.
How can I correct the compiled output path?
--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.
css_dir = "assets/stylesheets/css"
If this is incorrect then maybe you can offer something a little more
specific as to how it should be set?
Ian
On Dec 8, 1:30 pm, Andrés gutiérrez <andresgut...@gmail.com> wrote:
> Maybe that help you:http://compass-style.org/help/tutorials/configuration-reference/
>
> 2011/12/8 Ian <creativev...@googlemail.com>
compass create templates --sass-dir "assets/stylesheets/sass" --css-
dir "assets/stylesheets/css" --javascripts-dir "assets/scripts" --
images-dir "assets/images"
Initially it seems that this works. I get the correct directory
structure with sass files in the sass/ directory and css files (wait
for it...) in the css/ directory. I then setup the watch on the
stylesheets/ directory and make some changes in screen.css. When
Compass detects those changes it then creates a NEW directory:
stylesheets/ inside my existing sytlesheets directory and puts all css
files in there too. Even though it created the project with the
correct settings and the same correct settings still in the config.rb
file.
This has got to be a bug in Compass? Can anyone run a test and
confirm?
Steps to reproduce:
1) create a new project with the following settings:
compass create templates --sass-dir "assets/stylesheets/sass" --css-
dir "assets/stylesheets/css" --javascripts-dir "assets/scripts" --
images-dir "assets/images"
2) Notice correct directory structure
3) Put a watch on the stylesheets directory
4) Make changes to screen.scss and save.
5) Notice new stylesheets directory with same .css files in but all
new updates are placed in this directory. (project/assets/stylesheets/
sytlesheets/)
Running:
compass --version
Compass 0.11.5 (Antares)
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Using RVM. 1.9.3p0 set as default
Ian
project/
assets/
config.rb
stylesheets/
css/
sass/
With settings in the config.rb file set to:
css_dir = "stylesheets/css"
sass_dir = "stylesheets/sass"
This also works:
project/
assets/
stylesheets/
config.rb
css/
sass/
With settings in the config.rb file set to:
css_dir = "css"
sass_dir = "sass"
With either of these setups compilation of the stylesheets obeys the
settings in config.rb and correctly places the compiled CSS in the
css/ directory.
My questions are:
1) Why doesn't it work when the config.rb file is placed in the
project root, as it is when it's created using the "compass
create ..." command (even with specified sass and css directories)?
Why does it then ignore the config.rb file and create a random new
"stylesheets" directory?
2) Given either of the above two scenarios work I'll follow one of
those but should I be placing config.rb in the assets/ directory or
the stylesheets/ directory (see directory structures above)?
3) How does this affect settings in the config.rb file such as
http_path? Is this still set to "/"?:
http_path = "/"
4) Is this intended behaviour or more of a bug? I've been through all
the documentation (and the book) and can't find any reference to this
anywhere. If it's intended behaviour it could be good to make note of
this in the docs somewhere to prevent confusion for non-standard
Compass directory structures.
Thanks,
Ian
Sent from my iPhone
Something like:
compass create project -c assets/ ... ?
Ian
On Dec 9, 2:55 pm, Scott Davis <jetvipe...@gmail.com> wrote:
> You can always pass
> -c to compass and give it the config file
>
> Sent from my iPhone
>
At the moment it seems that you can create a new Compass project from
the command line along with instructions for the locations of the css-
dir and sass-dir but you have to then manually move the config.rb file
into the assets folder from the project root.
Ian
Sent from my iPhone
Ian
On Dec 9, 3:30 pm, Scott Davis <jetvipe...@gmail.com> wrote:
> Compass <command> -c <path to config>
>
> Sent from my iPhone
>