Comments (7)
Good point. I made another template myself.
Actually that LESS template is not working at all. Those syntaxes to get array itens are wrong.
from node-sprite-generator.
@alberto-bottarini: True, that was a bit short sighted by me. It basically stems from me, wanting to keep all the css-preprocessors as similar as possible with the least possible hassle. I will have to look into how all the css-prerocessors handle units before fixing this.
@daltones: I know it's annoying if you want to use a software and it's not working, but if you knew that the less template is broken and needed to write your own, why don't you contribute parts of your template back or open an issue about it? Just mentioning it in a sentence in another issue micht not be the best way to bring that to my attention.
from node-sprite-generator.
@alberto-bottarini, @daltones : Can you try out the fix-stylesheet-variables-being-strings
branch and check wether the the variables (and array indexing) work as expected in this branch? If so, I will merge and release 0.8.1
asap. 🍻
from node-sprite-generator.
@selaux, you're right. I'm sorry if my reply seems like rude. Actually my intention was to contribute later, I was working at that time.
I will write a fix today.
from node-sprite-generator.
I did some test with LESS and now it seems more usable.
I can now use all the auto-generated variables also in other contexts.
I'll wait for 0.8.1
👍
from node-sprite-generator.
@alberto-bottarini: Cool, I will merge this then
@daltones: No offense taken 😉, it's just that I only test all the stylesheet generators by using a online converter (i use http://less2css.org/ for less) and there it worked. To get to know that one of them does not work at all was kind of a surprise (or shock) to me. Is using extract(@sprite, 1);
with a 1-based index as in the PR (#35) the way to go?
from node-sprite-generator.
Closed with #35.
from node-sprite-generator.
Related Issues (20)
- [Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%wx%h" "-" this most likely means the gm/convert binaries can't be found] HOT 3
- sprite image is not generating HOT 6
- Could not execute GraphicsMagick/ImageMagick HOT 1
- Getting the following error - Unrecognized option (-Infinity) HOT 3
- Bad compositor / incorrect dependencies even though GraphicsMagick is installed HOT 6
- Support `sharp` as compositor
- gm convert: Unrecognized option (-Infinity) HOT 5
- Pass input source and retrieve output source as buffers HOT 5
- 0.10.2 version is vulnerable, please publish the GitHub changes to npm ? HOT 2
- When can we get next major release? HOT 3
- CLI available? HOT 2
- Update Dependencies HOT 1
- Fails to render custom template... template file name is contents of output stylesheet HOT 4
- grunt command line options are not preserved
- Sprite image and style does not generated HOT 1
- Any way we can use .svg files as well? HOT 1
- JPG support with quality option
- Update canvas dependency version HOT 1
- Options.stylesheet does not accept `javascript` HOT 2
- Error installing node-sprite-generator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sprite-generator.