Guest User

Untitled

a guest
Oct 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /* eslint-env node, es6 */
  2. 'use strict';
  3. const SRC = require('../paths.js').SRC;
  4.  
  5. const gulp = require('gulp');
  6. const svgSprite = require('gulp-svg-sprite');
  7.  
  8. // Browsers version will specify brower specifix prefixes
  9. const svgSpriteConfig = {
  10. mode: {
  11. inline: true,
  12. symbol: true
  13. },
  14. svg: {
  15. xmlDeclaration: false
  16. }
  17. };
  18.  
  19. /* Compile scss files */
  20. gulp.task('build-svg-sprite', () => {
  21. return gulp.src(`${SRC.DECOUPE_SVGICONS}/*.svg`)
  22. .pipe(svgSprite(svgSpriteConfig))
  23. .pipe(gulp.dest(SRC.DECOUPE_IMAGES));
  24. });
Add Comment
Please, Sign In to add comment