Closed jinghaonode closed 6 years ago
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 }, })
should be fixed in 0.5.2
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 }, })