summaryrefslogtreecommitdiff
path: root/dev/css-to-json-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-17 22:39:25 -0400
committerGitHub <noreply@github.com>2021-07-17 22:39:25 -0400
commite1230c7934084e1748e70e88b98f67e05cf0cf11 (patch)
treee551d98827ee1977538d6b5fd402050459718361 /dev/css-to-json-util.js
parentfafa746a632b1907d9cca262f689d7bec4e0f940 (diff)
CSS JSON styles generalization (#1838)
* Rename files * Generalize custom CSS generation and testing * Add CSS JSON file for display pronunciation
Diffstat (limited to 'dev/css-to-json-util.js')
-rw-r--r--dev/css-to-json-util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/css-to-json-util.js b/dev/css-to-json-util.js
index bdcac65b..d8577c8f 100644
--- a/dev/css-to-json-util.js
+++ b/dev/css-to-json-util.js
@@ -84,9 +84,9 @@ function formatRulesJson(rules) {
return result;
}
-function generateRules(cssFile, cssFileOverrides) {
+function generateRules(cssFile, overridesCssFile) {
const content1 = fs.readFileSync(cssFile, {encoding: 'utf8'});
- const content2 = fs.readFileSync(cssFileOverrides, {encoding: 'utf8'});
+ const content2 = fs.readFileSync(overridesCssFile, {encoding: 'utf8'});
const stylesheet1 = css.parse(content1, {}).stylesheet;
const stylesheet2 = css.parse(content2, {}).stylesheet;