Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 5, 2023
1 parent f209fde commit 0cb4b70
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions Configuration/ESBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
},
],
}),
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/node": "20.8.2",
"esbuild-plugin-copy": "2.1.1",
"typescript-esbuild": "0.2.14",
"vite": "4.4.10",
"vite": "4.4.11",
"vite-plugin-solid": "2.7.0"
},
"publishConfig": {
Expand Down

0 comments on commit 0cb4b70

Please sign in to comment.