Giter VIP home page Giter VIP logo

gulp-sprite's People

Contributors

aslansky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zackexplosion

gulp-sprite's Issues

support md5 in opt

Hello, whether you can add a selection in options about md5 for scss(css) and png filename?

Doesn't seem to finish running the task if the src directory is empty

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.

Invalid output sprite less

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))

Option for horizontal / vertical alignment?

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?

svg

you will implement svg?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.