aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/build-theme-info.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-08 00:01:37 +0000
committerLibravatar GitHub <noreply@github.com>2021-08-08 05:31:37 +0530
commit97d51a7763b14c92ee71ff9a012311dd9498d803 (patch)
treebd36005031ecb1148f27aa541e7a92a5e3aa4c0c /src/scripts/build-theme-info.js
parent5.6.1-nightly.17 [skip ci] (diff)
downloadferdium-app-97d51a7763b14c92ee71ff9a012311dd9498d803.tar.gz
ferdium-app-97d51a7763b14c92ee71ff9a012311dd9498d803.tar.zst
ferdium-app-97d51a7763b14c92ee71ff9a012311dd9498d803.zip
refactor: path-references refactoring and using 'import' instead of 'require' (#1752)
* refactor references to 'userData' and 'appData' directories to move hardcoding into single location * convert to es6 for lower memory usage as per https://codesource.io/the-difference-between-import-and-require-in-javascript/
Diffstat (limited to 'src/scripts/build-theme-info.js')
-rw-r--r--src/scripts/build-theme-info.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/build-theme-info.js b/src/scripts/build-theme-info.js
index cff33e3c4..4058be942 100644
--- a/src/scripts/build-theme-info.js
+++ b/src/scripts/build-theme-info.js
@@ -15,8 +15,8 @@ const accentColors = [
15 '#5e50ee', 15 '#5e50ee',
16]; 16];
17 17
18const cssFile = path.join(__dirname, '../../', 'build', 'styles', 'main.css'); 18const cssFile = path.join(__dirname, '..', '..', 'build', 'styles', 'main.css');
19const outputFile = path.join(__dirname, '../', 'assets', 'themeInfo.json'); 19const outputFile = path.join(__dirname, '..', 'assets', 'themeInfo.json');
20 20
21// Parse and extract the rules from a CSS stylesheet file 21// Parse and extract the rules from a CSS stylesheet file
22async function getRulesFromCssFile(file) { 22async function getRulesFromCssFile(file) {