From f9646f4c6b2ea64618d1cb48fe9217ccf205e5d8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 12 Oct 2023 04:04:03 +0300 Subject: [PATCH] squash! --- Configuration/ESBuild.js | 56 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/Configuration/ESBuild.js b/Configuration/ESBuild.js index ce769ba..f00e620 100644 --- a/Configuration/ESBuild.js +++ b/Configuration/ESBuild.js @@ -2,32 +2,32 @@ import { copy as Copy } from "esbuild-plugin-copy"; import { rm as Remove } from "fs/promises"; const outDir = "Target"; export default { - format: "esm", - minify: true, - outdir: outDir, - bundle: true, - platform: "browser", - target: ["edge104", "esnext"], - plugins: [ - { - name: "Target", - setup: (Build) => Build.onStart(async () => { - try { - await Remove(outDir, { - recursive: true, - }); - } - catch (_Error) { } - }), - }, - Copy({ - resolveFrom: "out", - assets: [ - { - from: "./Source/styles/*.css", - to: "./styles/", - }, - ], - }), - ], + format: "esm", + minify: true, + outdir: outDir, + bundle: true, + platform: "browser", + target: ["edge104", "esnext"], + plugins: [ + { + name: "Target", + setup: (Build) => + Build.onStart(async () => { + try { + await Remove(outDir, { + recursive: true, + }); + } catch (_Error) {} + }), + }, + Copy({ + resolveFrom: "out", + assets: [ + { + from: "./Source/styles/*.css", + to: "./styles/", + }, + ], + }), + ], };