mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
configer vite to check types
This commit is contained in:
parent
273e43d120
commit
26ee3f991d
@ -4,6 +4,7 @@ import vueI18n from '@intlify/unplugin-vue-i18n/vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vike from 'vike/plugin'
|
||||
import { UserConfig } from 'vite'
|
||||
import { checker } from 'vite-plugin-checker'
|
||||
|
||||
const isStorybook = () =>
|
||||
['storybook', 'storybook:build'].includes(process.env.npm_lifecycle_event as string)
|
||||
@ -16,6 +17,10 @@ const config: UserConfig = {
|
||||
ssr: true,
|
||||
include: path.resolve(__dirname, './src/locales/**'),
|
||||
}),
|
||||
checker({
|
||||
typescript: true,
|
||||
vueTsc: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: './build',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user