2024-11-28
This commit is contained in:
parent
fb2f8372f2
commit
8b74ebf97c
169 changed files with 716 additions and 1056 deletions
|
|
@ -9,9 +9,8 @@ import valibot from "vite-plugin-valibot-env";
|
|||
const SLUG_THEME = "haiku-atelier-2024";
|
||||
const SRC_TYPESCRIPT_PATHS = new fdir()
|
||||
.withBasePath()
|
||||
.glob("**/*.ts")
|
||||
.filter((path, isDirectory) => !isDirectory && !path.endsWith("lol.ts"))
|
||||
.filter((path, isDirectory) => !isDirectory && !path.endsWith("d.ts"))
|
||||
.withMaxDepth(0)
|
||||
.crawl(`web/app/themes/${SLUG_THEME}/src/scripts`)
|
||||
.withPromise();
|
||||
|
||||
|
|
@ -34,7 +33,7 @@ export default defineConfig({
|
|||
rollupOptions: {
|
||||
input: await SRC_TYPESCRIPT_PATHS,
|
||||
output: {
|
||||
assetFileNames: "[name][extname]",
|
||||
assetFileNames: "[name].[hash].[extname]",
|
||||
chunkFileNames: "[name].[hash].js",
|
||||
compact: true,
|
||||
entryFileNames: "[name].js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue