From d1b55aeceb1eda3517dc2edc419e5bee3fae21c9 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 15 Jan 2021 17:03:38 +0000 Subject: [PATCH] Generator: Fixes #4360: Scripts were no longer being compiled --- .../generators/app/templates/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/generator-joplin/generators/app/templates/webpack.config.js b/packages/generator-joplin/generators/app/templates/webpack.config.js index a79762a1d5..47eafec065 100644 --- a/packages/generator-joplin/generators/app/templates/webpack.config.js +++ b/packages/generator-joplin/generators/app/templates/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build