Configure plugin for vite
This commit is contained in:
parent
f1303483f3
commit
8e1efa69b0
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@ import { fileURLToPath, URL } from 'url'
|
|||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
import analyzer from 'rollup-plugin-analyzer'
|
||||
|
||||
import istanbul from 'vite-plugin-istanbul'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
|
|
@ -13,5 +13,12 @@ export default defineConfig({
|
|||
plugins: [
|
||||
vue(),
|
||||
analyzer({ summaryOnly: true }),
|
||||
istanbul({
|
||||
include: 'src/*',
|
||||
exclude: ['node_modules'],
|
||||
extension: ['.js', '.ts', '.vue'],
|
||||
requireEnv: false,
|
||||
forceBuildInstrument: Boolean(process.env.INSTRUMENT_BUILD)
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue