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);