aslansky / gulp-sprite Goto Github PK
View Code? Open in Web Editor NEWgulp task for creating image sprites and the corresponding stylesheets
gulp task for creating image sprites and the corresponding stylesheets
Hello, whether you can add a selection in options about md5 for scss(css) and png filename?
I have this set up in a "boilerplate" gulpfile for when I occasionally use sprite images. Occasionally being my keyword here, often times, I won't ever actually be using the sprite task.
However, I'd still like my watch task to watch the directory, just in case. But if the src directory doesn't have any images to turn into a sprite, it looks like it's not finishing and more or less killing the watch task, making it so my other tasks in watch never fire.
If there are images in the src directory, it generates fine and the rest of the watch tasks fire fine. It really just seems to be if there's nothing for the sprite task to do.
Hi,
I run to this problem with sprite and less
output is not valid less
Unrecognised input in file /path/less/sprites.less line no. 1 in file undefined line no. undefined
this is how output looks:
@icons/RSS-x: 5px;
@icons/RSS-y: 5px;
@icons/RSS-offset-x: -5px;
@icons/RSS-offset-y: -5px;
@icons/RSS-width: 27px;
@icons/RSS-height: 27px;
@icons/RSS-total-width: 37px;
@icons/RSS-total-height: 223px;
@icons/RSS-image: 'sprites.png';
@icons/RSS: 5px 5px -5px -5px 27px 27px 37px 223px 'sprites.png';
my task:
gulp.task 'SPRITES', ->
gulp.src(config.img.png.src)
.pipe(
sprite(
'sprites.png',
cssPath: config.less.sprites,
preprocessor: 'less'
)
)
.pipe(gulp.dest(config.img.dest))
First, thanks for starting the work on gulp-sprite!
Would you mind adding an option to adjust the alignment of the images in the sprite, so whether if they are appended horizontally or vertically?
you will implement svg?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.