creeperyang / ysprite Goto Github PK
View Code? Open in Web Editor NEWA lightweight yet powerful css sprite util.
License: MIT License
A lightweight yet powerful css sprite util.
License: MIT License
{ prefix: "i" }
then output .i-play { ... }
When images are large than normal icon, it will have no enough memory:
<--- Last few GCs --->
93221 ms: Mark-sweep 1376.9 (1434.5) -> 1376.9 (1434.5) MB, 1398.0 / 0.0 ms [allocation failure] [GC in old space requested].
94574 ms: Mark-sweep 1376.9 (1434.5) -> 1376.9 (1405.5) MB, 1352.5 / 0.0 ms [last resort gc].
95946 ms: Mark-sweep 1376.9 (1405.5) -> 1376.9 (1405.5) MB, 1371.7 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x1f10224cfb51 <JS Object>
1: getPixel [/Users/creeper/.nvm/versions/node/v6.9.0/lib/node_modules/.ysprite_npminstall/node_modules/.0.0.9@lwip/lib/ImagePrototypeInit.js:~78] [pc=0x1f65238634e5] (this=0x3a34d0decd89 <an Image with map 0x35bc58057d99>)
2: arguments adaptor frame: 2->0
3: appendImage [/Users/creeper/.nvm/versions/node/v6.9.0/lib/node_modules/.ysprite_npminstall/node_modules/.3.0.0@ysprite/lib/im...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
6: 0x1f65235092a7
[1] 13460 abort ysprite -s "*.png" -o tt.png --no-retina --no-style
when not set --output-retina
, the output message would be:
Sprite path: ... retina -> undefined
In fact, the retina image is generated.
ysprite
v3:
[email protected]
, so we can support [email protected]+
.nyc
to run code coverage.node@6+
(users should use webpack to transfrom code himself on demand).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.