gulp-fez-svg-symbols-tojs

1.0.3 • Public • Published

fez-gulp-svg-symbols-tojs

生成svg-symbolsJS文件,供页面直接引用。

安装

npm install fez-gulp-svg-symbols-tojs --save-dev

使用

import svgSymbols from 'gulp-svg-symbols'
import svgmin from 'gulp-svgmin'
import filter from 'gulp-filter'
import rename from 'gulp-rename'

import svgSymbolsToJs from 'fez-gulp-svg-symbols-tojs'

gulp.src('**/*.svg')
  .pipe(svgmin())
  .pipe(svgSymbols())
  .pipe(filter("**/*.svg"))
  .pipe(svgSymbolsToJs())
  .pipe(rename({
    extname: ".js"
  }))
  .pipe(gulp.dest(config.paths.dev.lib))

Readme

Keywords

Package Sidebar

Install

npm i gulp-fez-svg-symbols-tojs

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

9.66 kB

Total Files

8

Last publish

Collaborators

  • furic-zhao