Closed yutucc closed 7 years ago
Hey @NicholasNC,
Sorry for the late response. Please set retina
option to true
and the plugin will start to generate the necessary CSS rules. 😄
just set retina
?
@yangbin1994 Yes, just set the retina
option.
Will this retina functionality support 3x images as well? Something like this. I don't see anything in your documentation about it.
@Lkroner The retina
option supports 3x images because of these lines. If something doesn't work as you expected, you can use onUpdateRule
hook to implement the desired behavior. Here is an example - https://github.com/2createStudio/postcss-sprites/blob/master/examples/output-dimensions.md.
Hello, I want to realize function, like this:
In
/src/images/slice/
have two pic:test.png
andtest@2x.png
Css In
Css Out
reference: gulp-tmtsprite