M
M
mydarck2017-03-10 10:37:10
JavaScript
mydarck, 2017-03-10 10:37:10

How to save generated gulp-svg-symbols plugin style file to desired location?

Good afternoon.
Now my plugin is connected like this:

var svgsprite = require('gulp-svg-symbols');

gulp.task('svg-sprite', ['svg-min'], function() {
  return gulp.src('assets/img/svg-min/**/*.svg')
  .pipe(svgsprite())
  .pipe(gulp.dest('public/assets/img/svg/sprite'));
});

In this case, the output files have the default names svg-symbols.css and svg-symbols.svg. And they are saved to the 'sprite' shared folder, along the path 'public/assets/img/svg/'. Can you please tell me how to rename the output css file to _svg.scss and save it to a new path, to a directory with scss files 'assets/scss/tmpl'?
PS I understand that after the 'svg-sprite' task, you can execute the 'rename' task and do some task that will transfer the file from one place to another, but I think this approach is not elegant. I'm relying on options for the 'gulp-svg-symbols' plugin itself, or some general options. Initial Google search has not turned up any results yet.

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