Friday, 15 March 2013

Make SASS-generated line comments start on the project root instead of the file system root -



Make SASS-generated line comments start on the project root instead of the file system root -

for sass-generated line comments, there way denote file location starting @ project root instead of file scheme root?

right have:

file:///users/user-1/sites/mysite/sass/_base.scss

and awesome have:

sass/_base.scss

so don't run conflicts/overrides one:

file:///users/user-1/sites/mysite/sass/_base.scss file:///users/user-2/sites/mysite/sass/_base.scss

there no configuration alternative allow create sass-generated assets' line comments show paths relative project root.

however, seems you're asking wrong solution problem. problem you're facing every time different user compiles assets, end conflicts/overrides line comments. don't need check in precompiled assets version command scheme in first place, , if that's case, shouldn't so, , should stick precompiling them during deploys.

in fact, should compress assets in production, can adding line config/environments/production.rb:

config.assets.compress = true

sass compass-sass

No comments:

Post a Comment