Skip to content

Commit

Permalink
chore: update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Jul 5, 2024
1 parent 899ddd6 commit e1a53bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .github/changelog.md

This file was deleted.

8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import { type ConfigEnv, defineConfig, type UserConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import path from 'path'
Expand All @@ -9,8 +9,8 @@ import VueDevTools from 'vite-plugin-vue-devtools'
import { markdown } from '@nutui/vite-plugins'
const resolve = path.resolve
// https://vitejs.dev/config/
export default defineConfig({
base: '/',
export default defineConfig((env: ConfigEnv) => ({
base: env.command === 'build' ? '/h5/vue/4x/' : '/',
resolve: {
alias: [
{ find: '@', replacement: resolve(__dirname, './src') },
Expand Down Expand Up @@ -73,4 +73,4 @@ export default defineConfig({
include: ['src/packages/__VUE/**/*.(test|spec).(ts|tsx)'],
reporters: ['default', 'html']
}
})
}) as UserConfig)

0 comments on commit e1a53bd

Please sign in to comment.