Open pewuel opened 6 years ago
Hi @pewuel,
Generated images contain elements of other icons, so I decided to add spritesmith.padding, but it doesn't works. Sprite image output hasn't padding between images.
The padding option doesn't work because you're using SVG instead of raster images like PNG, GIF.
You need to use the svgsprite
option because SVG files are processed by a different engine.
I still got incorrect sprite output. For example icon--exit = icon--ring
In PasteBin I can see that you're using a custom onUpdateRule
hook. Can you confirm that the problem still exists if default logic is used?
In PasteBin I can see that you're using a custom onUpdateRule hook. Can you confirm that the problem still exists if default logic is used?
I think SVG is useless in default logic. I'm using responsive spritesheets, because I wanna put custom width & height (SVG is pretty flexible). It looked good until I started adding more icons and noticed that they are mixed up...
How I can do it ?
I'm using postcss-sprites with Laravel Mix.
Currently I have 2 issues:
1) Generated images contain elements of other icons, so I decided to add spritesmith.padding, but it doesn't works. Sprite image output hasn't padding between images.
2) I still got incorrect sprite output. For example icon--exit = icon--ring
Code sources, below:
webpack.mix.js: Code on PasteBin
SCSS with icons:
Have you similar problems?