From abaa9b4e057390d4f34200819330f1f90f0dcdff Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 12 Jan 2020 10:19:29 -0800 Subject: [PATCH] fix: ignore hidden files in scss/themes (#1696) When editing a theme file in vim, a .file.swp file is created and would crash the sass compiler. This ignores any hidden files in the directory, since they are probably not theme files. Co-authored-by: Milan --- bin/build-sass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-sass.js b/bin/build-sass.js index d6a0b22d..332d92a8 100755 --- a/bin/build-sass.js +++ b/bin/build-sass.js @@ -28,7 +28,7 @@ async function compileGlobalSass () { } async function compileThemesSass () { - const files = (await readdir(themesScssDir)).filter(file => !path.basename(file).startsWith('_')) + const files = (await readdir(themesScssDir)).filter(file => !path.basename(file).startsWith('_') && !path.basename(file).startsWith('.')) await Promise.all(files.map(async file => { let css = await renderCss(path.join(themesScssDir, file)) css = cssDedoupe(new TextDecoder('utf-8').decode(css)) // remove duplicate custom properties