refactor: build client bundles to new location and exclude from commits.
This commit is contained in:
parent
8602210a5c
commit
c1cf78bf96
6
.gitignore
vendored
6
.gitignore
vendored
@ -10,4 +10,8 @@ package-lock.json
|
|||||||
|
|
||||||
# exclude this very large css file, it can be
|
# exclude this very large css file, it can be
|
||||||
# built when needed with `npm run build:tailwind`
|
# built when needed with `npm run build:tailwind`
|
||||||
src/client/public/css/tailwind.css
|
src/client/public/css/tailwind.css
|
||||||
|
|
||||||
|
# Contains bundled js files built from typescript
|
||||||
|
# they can be very large, build with `npm run build:client`
|
||||||
|
src/client/public/bundles
|
@ -1,3 +1,6 @@
|
|||||||
|
// This file is for building client-side typescript found
|
||||||
|
// in './src/client/typescript' to './src/client/public/bundles'
|
||||||
|
|
||||||
import { build } from "esbuild";
|
import { build } from "esbuild";
|
||||||
import glob from "fast-glob";
|
import glob from "fast-glob";
|
||||||
|
|
||||||
@ -6,7 +9,7 @@ const entryPoints = await glob("./src/client/typescript/**/*");
|
|||||||
build({
|
build({
|
||||||
entryPoints,
|
entryPoints,
|
||||||
// outBase: "",
|
// outBase: "",
|
||||||
outdir: "./src/client/public/js",
|
outdir: "./src/client/public/bundles",
|
||||||
bundle: true,
|
bundle: true,
|
||||||
target: ["es6"],
|
target: ["es6"],
|
||||||
format: "iife",
|
format: "iife",
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user