Closed RusinovAnton closed 7 years ago
Thanks for this. How are you using this enum in your code? Just so I can paint a better understanding and write something in the docs to clarify.
@Gaya, ok. so lets say I want to include whole icon set from the icons/react-icons
folder
// style.scss
// I'm going to change icons folder path
$sprite-icons-folder: 'icons/react-icons/*.png';
$sprite-icons-2x-folder: 'icons/react-icons/*.png';
// and set custom icon prefix
$sprite-icons-class-prefix: 'react-icon_';
@import 'sprite/retina-sprites';
// so I need just import _sprite-icons-enum.scss file after _retina-sprites.scss
// and it will generate stylesheet with whole set of icons.
@import 'sprite/sprite-icons-enum';
Now when I add .png icons to the icons source folder and run styles build it will generate corresponding styles automatically.
Thanks! I will merge this into the library. Great work!
@Gaya, are you going to bump bower package version? Also are you going to publish package on npm?
Right. I'll do that later today. Thanks for the heads up
Changes have been version bumped and module is also available on npm now
Hey, I've customized you code for my own purposes and thought that it might be interesting for you.