Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Automagic generation of CSS Sprites #61

Closed
reneviering opened this issue Nov 4, 2015 · 7 comments
Closed

Automagic generation of CSS Sprites #61

reneviering opened this issue Nov 4, 2015 · 7 comments

Comments

@reneviering
Copy link

Spritesmith seems to be a good library for this purpose:
https://github.com/Ensighten/grunt-spritesmith

@mischah
Copy link
Member

mischah commented Nov 13, 2015 via email

@mischah
Copy link
Member

mischah commented Nov 16, 2015

I wonder how the default setup of this task should look like.

Because something like the following is too generic:

sprite: {
  all: {
    src: 'path/to/your/sprites/*.png',
    dest: 'destination/of/spritesheet.png',
    destCss: 'destination/of/sprites.css'
  }
}

I guess settings for sprite generation are very project specific. So I guess we should use the following as default:

sprite: {
  /*
   * Generating CSS sprites is very project specific. Please take your time and 
   * configure one ore more subtasks according to your needs.
   */
  // subTaskName: {
  //   src: 'path/to/your/images/*.png',
  //   dest: 'destination/of/spritesheet.png',
  //   destCss: 'destination/of/sprites.less'
  // }
}

Any thoughts on that @revrng?

@reneviering
Copy link
Author

That's a good point. Maybe we should write a few more lines how to use the sprite plugin. Especially how to integrate the generated sprites.less into the existing less files and how to use the generated sprite mixins.

@mischah
Copy link
Member

mischah commented Nov 16, 2015

Good catch. Makes sense to point out to https://github.com/Ensighten/grunt-spritesmith or add some own documentation about how to set up this thing.

I guess that belongs to the readme and we could add another sentence like »See readme for further information« or just »See https://github.com/Ensighten/grunt-spritesmith for further information«.

@mischah mischah added this to the 2.1.0 milestone Dec 11, 2015
@mischah mischah modified the milestones: 2.2.0, 2.1.0 Dec 18, 2015
@mischah mischah removed this from the 2.2.0 milestone Jan 11, 2016
@mischah mischah modified the milestone: 4.0 Mar 20, 2017
@mischah mischah added v2 and removed v3 v2 labels Mar 20, 2017
@mischah mischah removed this from the 4.0 milestone Mar 25, 2017
@mischah
Copy link
Member

mischah commented May 18, 2017

Going to close this (for now).

If we have a project using SVGs intensively we should consider using either gulp-svg-sprite, gulp-svgstore or gulp-svg-sprites and check if it makes sense to integrate one or another in Bootstrap Kickstart by default.

@mischah mischah closed this as completed May 18, 2017
@mischah
Copy link
Member

mischah commented May 22, 2017

Going to reopen this just in case someone finds time to investigate those gulp plugins ⬆️

@mischah
Copy link
Member

mischah commented Jun 12, 2017

Closing this.
Issue might be recreated in the upcoming Baumeister Repo.

@mischah mischah closed this as completed Jun 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants