1.0.0 • Published 4 years ago
postcss-svgic v1.0.0
postcss-svgic
Installation
npm i postcss-svgic
Gulp
const svgic = require('postcss-svgic');
const styles = () => {
const processors = [
svgic(SVG_PATH)
]
return src(MAIN_SRC)
.pipe(postcss(processors))
.pipe(dest('priv/static/css'))
}
CSS usage example
.icon-edit {
svg-icon: i20_edit 28px
}
1.0.0
4 years ago