Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* eslint-env node, es6 */
- 'use strict';
- const SRC = require('../paths.js').SRC;
- const gulp = require('gulp');
- const svgSprite = require('gulp-svg-sprite');
- // Browsers version will specify brower specifix prefixes
- const svgSpriteConfig = {
- mode: {
- inline: true,
- symbol: true
- },
- svg: {
- xmlDeclaration: false
- }
- };
- /* Compile scss files */
- gulp.task('build-svg-sprite', () => {
- return gulp.src(`${SRC.DECOUPE_SVGICONS}/*.svg`)
- .pipe(svgSprite(svgSpriteConfig))
- .pipe(gulp.dest(SRC.DECOUPE_IMAGES));
- });
Add Comment
Please, Sign In to add comment