|
Server IP : 10.107.20.4 / Your IP : 216.73.217.10 Web Server : Apache System : Linux webm004.cluster107.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : simfexinjt ( 803937) PHP Version : 7.1.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0555) : /home/simfexinjt/www/wp-includes/images/crystal/../../customize/../css/../../1a425/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
/**
* Created by Damien on 18/01/2017.
*/
var gulp = require('gulp');
var spritesmith = require('gulp.spritesmith');
var path = "wp-content/themes/simflex/";
var sprites = {config: {
src: path + 'img/icons/*.png',
dest: {
css: path + 'sass/',
image: path + 'img/'
},
options: {
cssName: '_sprites.scss',
cssFormat: 'scss',
imgName: 'simflex-sprite.png',
imgPath: 'img/simflex-sprite.png'
}
}};
console.log(sprites.config.src);
gulp.task('default', function () {
var spriteData = gulp.src(sprites.config.src).pipe(spritesmith(sprites.config.options));
spriteData.img
.pipe(gulp.dest(sprites.config.dest.image));
spriteData.css
.pipe(gulp.dest(sprites.config.dest.css));
});