summaryrefslogtreecommitdiff
path: root/themes/src/tools
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 16:23:43 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 16:23:43 -0400
commitff3b7a7fa3f2ce994fb4aaaa9699c1c91fa07904 (patch)
treed62df3ff940c7976923d70e116e502c381f96b97 /themes/src/tools
parent61cd8d99e6a3475eaf2bd28bc24892cf1aae0398 (diff)
Working shaders again
Diffstat (limited to 'themes/src/tools')
-rw-r--r--themes/src/tools/shader.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/src/tools/shader.js b/themes/src/tools/shader.js
index 54ba6e0..10889db 100644
--- a/themes/src/tools/shader.js
+++ b/themes/src/tools/shader.js
@@ -8,6 +8,10 @@ const fs = require('fs');
const directory = path.join(__dirname, "..", "_shaders");
const out_directory = path.join(__dirname, "..", "shaders");
+if (!fs.existsSync(out_directory)){
+ fs.mkdirSync(out_directory);
+}
+
const files = fs.readdirSync(directory);
files.forEach(file => {
const filePath = path.join(directory, file);