Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using retina '@2x' and padding, but only @1x image has padding #69

Closed
jinghaonode opened this issue Aug 4, 2018 · 1 comment
Closed

Comments

@jinghaonode
Copy link

jinghaonode commented Aug 4, 2018

new SpritesmithPlugin({
src: {
cwd: path.resolve(__dirname, '../src/ico'),
glob: '*.png'
},
target: {
image: path.resolve(__dirname, '../src/assets/sprite.png'),
css: path.resolve(__dirname, '../src/assets/sprite.scss')
},
apiOptions: {
cssImageRef: '~@/assets/sprite.png'
},
retina: '@2x',
spritesmithOptions: {
algorithm: 'top-down',
padding: 20
},
})
4165608

@mixtur
Copy link
Owner

mixtur commented Aug 5, 2018

should be fixed in 0.5.2

@mixtur mixtur closed this as completed Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants