diff --git a/build.ts b/build.ts index 2eda508..7c996bc 100644 --- a/build.ts +++ b/build.ts @@ -5,7 +5,7 @@ import { statSync, writeFileSync, readFileSync, - rmSync, + // rmSync, } from 'fs'; import { resolve, dirname, basename } from 'path'; import { minify } from 'html-minifier'; @@ -29,7 +29,10 @@ function getFiles(baseDir: string, dir?: string, filesArr?: string[]) { const isDev = process.env.NODE_ENV === 'development' ? true : false; const srcDir = resolve(import.meta.dir, 'src'); -const publicDir = resolve(import.meta.dir, process.env['BUILD_PATH'] ?? 'public'); +const publicDir = resolve( + import.meta.dir, + process.env['BUILD_PATH'] ?? 'public', +); const srcFiles = getFiles(resolve(import.meta.dir, 'src')); const bundleFiles: string[] = []; const minifyFiles: string[] = []; diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index 4694fdb..f5047c8 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -1025,5 +1025,6 @@ if (window.location.hostname === null) { backups, consoleLog, openAboutBlank, + $, ]); }