mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-22 22:03:30 +08:00
build(frontend): check ts on build
This commit is contained in:
parent
c832f7eb39
commit
5c58270bde
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ import replace from "vite-plugin-filter-replace";
|
|||
import path from "node:path";
|
||||
import { splitVendorChunkPlugin } from "vite";
|
||||
import childProcess from "child_process";
|
||||
import { checker } from "vite-plugin-checker";
|
||||
|
||||
function pad(numbers, maxLength, fillString) {
|
||||
return numbers.map((number) =>
|
||||
|
@ -63,6 +64,11 @@ export default {
|
|||
generatePreviewFonts();
|
||||
},
|
||||
},
|
||||
checker({
|
||||
typescript: {
|
||||
tsconfigPath: path.resolve(__dirname, "./tsconfig.json"),
|
||||
},
|
||||
}),
|
||||
splitVendorChunkPlugin(),
|
||||
VitePWA({
|
||||
injectRegister: "networkfirst",
|
||||
|
|
Loading…
Reference in a new issue