From 2d62c2731de28bdd3246067662b418e8ec350206 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Sun, 6 Oct 2024 00:30:08 +0200 Subject: [PATCH] Fix error due to non-existing variations folder --- src/variations/.keep | 0 webpack.config.js | 4 ++++ 2 files changed, 4 insertions(+) delete mode 100644 src/variations/.keep diff --git a/src/variations/.keep b/src/variations/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/webpack.config.js b/webpack.config.js index b82a7b9ec..d79975195 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,6 +13,10 @@ function getVariationEntries() { const variationsDir = path.resolve(process.cwd(), 'src', 'variations'); const entries = {}; + if ( ! fs.existsSync(variationsDir) ) { + return entries; + } + const variationDirs = fs.readdirSync(variationsDir); for (const variation of variationDirs) { const variationPath = path.join(variationsDir, variation);