uglifycss
uglifycss copied to clipboard
Port of YUI CSS Compressor from Java to NodeJS
The CSS fragment ``` css @media only screen and not (max-width:768px) { ``` gets minified as ``` css @media only screen and not(max-width:768px){ ``` However that is an error and...
**Why is issue #52 closed?** Minification and Optimization removes neccessary whitespace after `or`. ``` // CSS @supports ((position: -webkit-sticky) or (position: sticky)) { .element { position : -webkit-sticky position :...
I've been testing some code in IE11/Windows 7 with Browserstack and found uglify is causing errors in the following code ` background: linear-gradient(0,rgba(105,44,145,0.3),rgba(105,44,145,0.3)),linear-gradient(0,rgba(0,49,131,0.3),rgba(0,49,131,0.3)),linear-gradient(90deg,rgba(0,174,239,0.9) 23.61%,rgba(0,49,131,0.0001) 99.7%)` changing 0 to 0deg (first...
Hi, I believe minification for `text-shadow` may be incorrect in some cases. ```bash $ echo 'p{text-shadow:0 0 0;}' | uglifycss p{text-shadow:0} ``` In that case, it should be `text-shadow:0 0`....
Hi and thanks for this plugin. If you define: ``` @keyframes fancy-mouse-breathing-animation { 0% { background-color: rgba(0,255,0, 1); } 50% { background-color: rgba(0,255,0, 0.33); } 100% { background-color: rgba(0,255,0, 1);...
Remove @charset for other files, except the first one

Adding support for cases: - @supports not ( - @supports not (not ( - @supports (display: grid) and (not ( https://developer.mozilla.org/en-US/docs/Web/CSS/%40supports
const uglifiedCSS = UglifyCSS.processString(style, uglifyOptions.css);    ![Screenshot 2023-01-04 at 7...
Say I want to pack all css into 1 file, how should i specify the source map for bootstrap.css? uglifycss --output css/app.min.css --max-line-len 800 ^ jsplugin/bootstrap/css/bootstrap.css ^ jsplugin/bootstrap/css/bootstrap-theme.css ^ js/app.css...