简体   繁体   中英

uglifycss changes background color when minified

When I run the script to minify my css file using uglifycss the background color changes in the minified file. What can i do to make sure this doesn't happen?

filename.css:

{....
background: #bfaaaff
...}

filename.min.css:

...;background:#bf;...

Your background color is invalid. It has 7 charaters instead of the 6 a hex color should have. Changing it to background: #bfaaff should do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM