2024-09-07
This commit is contained in:
parent
082202007b
commit
3ae978e4e8
547 changed files with 3766 additions and 813 deletions
|
|
@ -9,13 +9,14 @@ 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"))
|
||||
.crawl(`web/app/themes/${SLUG_THEME}/src/scripts`)
|
||||
.withPromise();
|
||||
|
||||
/* Voir le fichier vite.env.d.ts */
|
||||
const SCHEMA_ENVIRONNEMENT = v.object({
|
||||
VITE_URL: v.pipe(v.string(), v.nonEmpty(), v.url(), v.readonly()),
|
||||
VITE_GLITCHTIP_NSD: v.pipe(v.string(), v.url(), v.readonly()),
|
||||
VITE_URL: v.pipe(v.string(), v.nonEmpty(), v.url(), v.readonly()),
|
||||
});
|
||||
|
||||
export default defineConfig({
|
||||
|
|
@ -27,6 +28,7 @@ export default defineConfig({
|
|||
manifest: true,
|
||||
minify: true,
|
||||
outDir: resolve("./web/app/themes/haiku-atelier-2024/assets/js"),
|
||||
reportCompressedSize: true,
|
||||
rollupOptions: {
|
||||
input: await SRC_TYPESCRIPT_PATHS,
|
||||
output: {
|
||||
|
|
@ -39,7 +41,6 @@ export default defineConfig({
|
|||
treeshake: "smallest",
|
||||
},
|
||||
sourcemap: true,
|
||||
reportCompressedSize: true,
|
||||
target: "es2023",
|
||||
watch: { clearScreen: false },
|
||||
write: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue