Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const
- gulp = require('gulp'),
- svgSymbols = require('gulp-svg-symbols'),
- svgo = require('gulp-svgo');
- gulp.task('icons_symbols', function () {
- var stream = gulp.src(config.src + config.icons + '*.svg')
- .pipe(svgo({
- plugins: [
- {
- removeViewBox: false
- }
- ]
- }))
- .pipe(gulp.dest(config.tmpIcons))
- .pipe(svgSymbols({
- templates: [
- config.src + config.icons + 'templates/symbols.svg',
- config.src + config.icons + 'templates/icons.template.scss'
- ]
- }))
- .pipe(gulp.dest(config.src + config.icons + 'generated/'));
- gulp.src(config.src + config.icons + 'generated/symbols.svg').pipe(gulp.dest(config.public + config.icons));
- return stream;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement