yui / ycssmin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jbleuzen/node-cssmin
Minimize CSS files from Node.js
Home Page: http://yui.github.com/ycssmin/
License: Other
This project forked from jbleuzen/node-cssmin
Minimize CSS files from Node.js
Home Page: http://yui.github.com/ycssmin/
License: Other
Hey there!
I'd like to report a security issue but cannot find contact instructions on your repository.
If not a hassle, might you kindly add a SECURITY.md
file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)
calc(10% + 5px) is compressed to calc(10%+5px) which is invalid css.
the following css gets mangled when compressing with ycssmin
@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
// a {
// font-size: 4rem;
// }
}
/**===================================================**\
/** PRINT STYLES
/**===================================================**/
@media only print {
// * { background: @trans !important; box-shadow: none !important; color: @black !important; text-shadow: none !important; }
a,
a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
/** MANUALLY TRUNCATED FOR BREVITY **/
}
When I try to minify large (several MB), I get the following error:
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
googleing around shows that this seems to happen when node is running code with memory leaks. Indeed, the node process running ycssmin uses >600MB memory prior to erroring.
Anything I can do to identify the source of the memory leak?
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.