D
D
DeniSidorenko2017-09-09 22:51:03
gulp.js
DeniSidorenko, 2017-09-09 22:51:03

How to use this task?

Good afternoon, we installed a new task in the assembly, I just can’t figure out how to work with it

gulp.task('sprites', function () {
    return gulp.src('app/icons/*.svg')
        .pipe(svgSymbols({
            title: false,
            id: 'icon_%f',
            className: '.icon_%f',
        }))
        .pipe(gulpIf(/\.css$/, gulp.dest('app/css')))
        .pipe(gulpIf(/\.svg$/, rename('icon.svg')))
        .pipe(gulpIf(/\.svg$/, gulp.dest('dist/img')));
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question