From 4c40f9b7b6c82610f20118fd7e05f632e60f17a9 Mon Sep 17 00:00:00 2001 From: tofulm Date: Thu, 30 Jun 2022 14:23:01 +0200 Subject: [PATCH] pas besoin des svg ici --- gulpfile.js | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ce273c0..e8832a6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -82,50 +82,6 @@ function watcherJsBabel() { }); } -/* - * SVG sprite - */ -const gulpSvgSprite = require('gulp-svg-sprite'); -const config = { - shape: { - spacing: { - box: 'icon', - }, - }, - mode: { - //"view": { - //"dest": ".", - //"sprite": "sprite_css_pictos.svg", - //"bust": false - //}, - - symbol: { - dest: '.', - sprite: 'sprite_symbol_pictos.svg', - }, - }, -}; - -function svgSprite() { - return ( - src('svg/**/*.svg') - //.pipe(plumber()) - .pipe(gulpSvgSprite(config)) - .on('error', function (error) { - console.log(error); - }) - .pipe(dest('img')) - ); -} - -/* - * SVG minifier - */ -var svgmin = require('gulp-svgmin'); -function svgMin() { - return src('svg/*.svg').pipe(svgmin()).pipe(dest('./svgmin')); -} - /* * Exports des fonctions */ @@ -133,6 +89,4 @@ module.exports = { default: parallel(sass, jsConcatMinif, jsBabel), sass: sass, watch: parallel(watcherSass, watcherJsConcatMinif, watcherJsBabel), - sprite: svgSprite, - svgmin: svgMin, };