Skip to content

Commit

Permalink
Moved static folder cleanup logic inside esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed May 29, 2024
1 parent 23e4ea9 commit 3d22796
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 9 deletions.
2 changes: 2 additions & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as esbuild from "esbuild";
import { clean } from "esbuild-plugin-clean";
import { sassPlugin } from "esbuild-sass-plugin";
import manifestPlugin from "esbuild-plugin-manifest";

Expand All @@ -23,6 +24,7 @@ const config = {
".png": "copy",
},
plugins: [
clean({ patterns: ["./static/*"] }),
sassPlugin({
embedded: true,
}),
Expand Down
Loading

0 comments on commit 3d22796

Please sign in to comment.