1.0.0 • Published 6 years ago
postcss-svgic v1.0.0
postcss-svgic
Installation
npm i postcss-svgicGulp
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
6 years ago