mirror of https://github.com/laurent22/joplin.git
Chore: Desktop: Fix slow startup issue: defaultPlugins directory not cleaned on rebuild (#9785)
parent
821cc346f7
commit
b69d752734
|
@ -4,6 +4,7 @@ const compileSass = require('@joplin/tools/compileSass');
|
|||
const compilePackageInfo = require('@joplin/tools/compilePackageInfo');
|
||||
import buildDefaultPlugins from '@joplin/default-plugins/commands/buildAll';
|
||||
import copy7Zip from './tools/copy7Zip';
|
||||
import { remove } from 'fs-extra';
|
||||
|
||||
const tasks = {
|
||||
compileScripts: {
|
||||
|
@ -34,6 +35,7 @@ const tasks = {
|
|||
buildDefaultPlugins: {
|
||||
fn: async () => {
|
||||
const outputDir = `${__dirname}/build/defaultPlugins/`;
|
||||
await remove(outputDir);
|
||||
await buildDefaultPlugins(outputDir);
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue