Commit b2a1d480 authored by Guy Tepper's avatar Guy Tepper

[BUGFIX] fixed readme example

parent 5b4f0fa1
...@@ -23,10 +23,12 @@ Then, add it to your `gulpfile.js`. I'd recommend to use it in conjunction with ...@@ -23,10 +23,12 @@ Then, add it to your `gulpfile.js`. I'd recommend to use it in conjunction with
var inlineSvg = require("gulp-inline-svg"), var inlineSvg = require("gulp-inline-svg"),
svgMin = require('gulp-svgmin'); svgMin = require('gulp-svgmin');
gulp.src("images/svgs/**/*.svg") gulp.task('inline-svg', function() {
.pipe(svgMin()) return gulp.src("images/svgs/**/*.svg")
.pipe(inlineSvg()) .pipe(svgMin())
.pipe(gulp.dest("sass")); .pipe(inlineSvg())
.pipe(gulp.dest("sass"));
})
``` ```
This will create a _svg.scss file inside your 'sass' folder. This will create a _svg.scss file inside your 'sass' folder.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment