diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-24 16:23:43 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-24 16:23:43 -0400 |
commit | ff3b7a7fa3f2ce994fb4aaaa9699c1c91fa07904 (patch) | |
tree | d62df3ff940c7976923d70e116e502c381f96b97 /themes/src/tools | |
parent | 61cd8d99e6a3475eaf2bd28bc24892cf1aae0398 (diff) |
Working shaders again
Diffstat (limited to 'themes/src/tools')
-rw-r--r-- | themes/src/tools/shader.js | 4 |
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); |