asset_compress icon indicating copy to clipboard operation
asset_compress copied to clipboard

Using Scss or ScssPHP with filter settings

Open sams opened this issue 9 years ago • 3 comments

I have the following in my ini settings. When I run build I get errors about not find sass. And sometimes errors about not finding files on the path. What am I doing wrong?

Really I would like to use the ScssPHP option - but can't seem to get that working at all. So I tried plain sass and think i am close but I do have to tell the plugin where my sass is.

[filter_Scss]
sass = /c/Ruby/bin/sass

My scss = css set. Some files are in core others in components

[all.css]
paths[] = WEBROOT/css/scss/core/
paths[] = WEBROOT/css/scss/components/
files[] = normalize.scss
files[] = main.scss
files[] = _functions.scss
files[] = _settings.scss
files[] = _grid.scss

it seems that I can not get sass to be found. I think I did have it found but it borked on not finding the _grid.scss file.

I get this output and other things

_runCmd('/usr/bin/sass D...', '', Array)

hence i think it is not finding sass despite my setting above

sams avatar Feb 08 '16 05:02 sams

Does main.scss import the various _* files? If so you don't need to re-include them with asset_compress.

Normally what I do is:

[all.css]
files[] = main.scss

And inside my scss file, include all the dependencies.

markstory avatar Feb 08 '16 18:02 markstory

No it doesn't. My plan is to set up the initial to control what's included in a build from a framework with in the initial setting of asset compress.

I'll try things on a real machine later. And look in depth at the scssphpfilter. I'd prefer to not have to use ruby

Weird stuff happens on windoze. Msysgit might cause some quirks. The issue is not that it is not accepting my setting for sass - more something other...

sams avatar Feb 08 '16 21:02 sams

Ok. I've personally only used the ruby based scss filter, and it works pretty well.

markstory avatar Feb 09 '16 02:02 markstory