pas besoin des svg ici
This commit is contained in:
parent
8f770bdbbf
commit
4c40f9b7b6
1 changed files with 0 additions and 46 deletions
46
gulpfile.js
46
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
|
* 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,
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue