purgetss 5.3.19 → 5.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2224,8 +2224,7 @@ function purgeTailwind(uniqueClasses) {
|
|
|
2224
2224
|
if (classesWithOpacityValues.length > 0) {
|
|
2225
2225
|
purgedClasses += '\n// Styles with color opacity modifiers\n';
|
|
2226
2226
|
classesWithOpacityValues.forEach(opacityValue => {
|
|
2227
|
-
let opacityIndex = _.findIndex(tailwindClasses, line => line.startsWith(`'.${opacityValue.
|
|
2228
|
-
|
|
2227
|
+
let opacityIndex = _.findIndex(tailwindClasses, line => line.startsWith(`'.${opacityValue.theClassName}`));
|
|
2229
2228
|
if (opacityIndex > -1) {
|
|
2230
2229
|
//! TODO: Check if color value is a hex value!! (if not, they are using rbg, rgba or semantic colors)
|
|
2231
2230
|
//! In other words, we need to validate the color value, before we can alter its opacity.
|
package/package.json
CHANGED