antd-theme-generator
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -375,3 +375,4 @@ const fs = require("fs"); | ||
color = color.replace('(', '\\(').replace(')', '\\)'); | ||
css = css.replace(new RegExp(`${color}`, "g"), varName); | ||
// css = css.replace(new RegExp(`${color}`, "g"), varName); // Fixed bug https://github.com/mzohaibqc/antd-theme-webpack-plugin/issues/25 | ||
css = css.replace(new RegExp(`${color}` + ' *;', "g"), `${varName};`); | ||
}); | ||
@@ -389,3 +390,3 @@ | ||
console.log( | ||
`Theme generated successfully. OutputFile: ${outputFilePath}` | ||
`🌈 Theme generated successfully. OutputFile: ${outputFilePath}` | ||
); | ||
@@ -392,0 +393,0 @@ } else { |
{ | ||
"name": "antd-theme-generator", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "This a script to generate color specific styles less file and which you can use to change theme dynamically in browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,3 +41,3 @@ # antd-theme-generator | ||
Now you can update colors by updating less avriables like this | ||
Now you can update colors by updating less variables like this | ||
@@ -44,0 +44,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29189
379