gavro / gulp-iconify

'A mystical CSS icon solution', grunticon-like build system.
MIT License
50 stars 22 forks source link

File name of scss output #16

Closed Matthieusch closed 8 years ago

Matthieusch commented 9 years ago

Hi,

File name of scss output should starting by '_' like: _icon.svg.scss. Because when lib-sass compile these files, it'll create : icon.svg.css, icon.png.css and icon.fallback.css in dist folder. I think users can import these files as a dependencies in there main.scss like so: @import "icon.svg";

What do you think?

gavro commented 9 years ago

Hm, sounds like a plan. Will push this to a future 0.4.* version so that it doesn't break any setups using 0.3.*. Thanks for spotting this!

SeeWatson commented 9 years ago

This would be incredibly helpful to me. Has there been any progress on it?

CHEWX commented 8 years ago

Agreed.

Needs a '_', it does compile correctly by using @import but duplicates output.

ttomdewit commented 8 years ago

Any news on this? Issue seems to be closed, but unfortunately 0.4.0 does not prepend filenames with _ (_icons.svg.scss).

ttomdewit commented 8 years ago

Any news on this?

SeeWatson commented 8 years ago

I'd like to see some movement as well. At least give the option to prepend with an _ even if it's not the default.

gavro commented 8 years ago

Fixed/added to v0.6.0. Scss is written to "underscore files" and css to regular icons.css files. Needed to replace the gulp-sass plugin with a customised one, as "underscore files" are treated as partial files and are not processed by gulp-sass.