NativeScript / nativescript-dev-webpack

A package to help with webpacking NativeScript apps.
Apache License 2.0
97 stars 49 forks source link

css2json color and uglify #1133

Open farfromrefug opened 4 years ago

farfromrefug commented 4 years ago

In {N} hex 8 colors are define that way #aarrggbb Now there is an issue with the uglify/production and nativescript-dev-webpack/css2json-loader

When using production and uglify, #aarrggbb will be transformed to rgba format but it will do so thinking the original hex format is #rrggbbaa

Consequently i end up with the wrong colors in production builds, which is not nice :D

I think the way to fix this right now is not to change those values to rgba. The best way would be for N to support #rrggbbaa which is the default for the web