rollup-plugin-spritesmith
v0.0.3
Published
rollup plugin spritesmith
Downloads
3
Readme
rollup-plugin-spritesmith
install
npm install rollup-plugin-spritesmith --dev
use
//rollup-plugin-spritesmith depend on spritesmith-cli-aj
import spritesmith from 'rollup-plugin-spritesmith'
export default {
entry: '...',
plugins: [
spritesmith({
glob: '**/icon-*.{png,gif,jpg}',
imageDist: path.resolve(__dirname, './test/sprite-icon.png'),
styleDist: path.resolve(__dirname, './test/sprite-icon.styl'),
prefix: 'test-',
multiple: 2
})
],
targets: [
{
...
}
]
}