mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-18 14:55:34 +08:00
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
import { checker } from "vite-plugin-checker";
|
|
import Inspect from "vite-plugin-inspect";
|
|
import path from "node:path";
|
|
import { getFontsConig } from "./vite.config";
|
|
import { envConfig } from "./scripts/env-config";
|
|
import { languageHashes } from "./scripts/language-hashes";
|
|
|
|
/** @type {import("vite").UserConfig} */
|
|
export default {
|
|
plugins: [
|
|
envConfig({ isDevelopment: true }),
|
|
languageHashes({ skip: true }),
|
|
checker({
|
|
typescript: {
|
|
tsconfigPath: path.resolve(__dirname, "./tsconfig.json"),
|
|
},
|
|
oxlint: true,
|
|
eslint: {
|
|
lintCommand: `eslint "${path.resolve(__dirname, "./src/ts/**/*.ts")}"`,
|
|
watchPath: path.resolve(__dirname, "./src/"),
|
|
},
|
|
overlay: {
|
|
initialIsOpen: false,
|
|
},
|
|
}),
|
|
Inspect(),
|
|
],
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: `
|
|
$fontAwesomeOverride:"@fortawesome/fontawesome-free/webfonts";
|
|
$previewFontsPath:"webfonts";
|
|
$fonts: (${getFontsConig()});
|
|
`,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "../dist",
|
|
},
|
|
};
|