From e559999aa4008f2b9ce7f5609e4df3631f0bfe0d Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 14 Jan 2021 15:47:34 +0000 Subject: [PATCH] Generator: Fixed crash when no external script needs to be compiled --- .../generators/app/templates/webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/generator-joplin/generators/app/templates/webpack.config.js b/packages/generator-joplin/generators/app/templates/webpack.config.js index ec6c21ff26..a79762a1d5 100644 --- a/packages/generator-joplin/generators/app/templates/webpack.config.js +++ b/packages/generator-joplin/generators/app/templates/webpack.config.js @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs;