pas besoin des svg ici

This commit is contained in:
Christophe 2022-06-30 14:23:01 +02:00
parent 8f770bdbbf
commit 4c40f9b7b6

View file

@ -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 * Exports des fonctions
*/ */
@ -133,6 +89,4 @@ module.exports = {
default: parallel(sass, jsConcatMinif, jsBabel), default: parallel(sass, jsConcatMinif, jsBabel),
sass: sass, sass: sass,
watch: parallel(watcherSass, watcherJsConcatMinif, watcherJsBabel), watch: parallel(watcherSass, watcherJsConcatMinif, watcherJsBabel),
sprite: svgSprite,
svgmin: svgMin,
}; };