Files
kengee-data-screen/vite.config.js

27 lines
561 B
JavaScript
Raw Normal View History

2024-06-17 18:22:00 +08:00
import {fileURLToPath, URL} from 'node:url'
2024-05-22 17:03:33 +08:00
2024-06-17 18:22:00 +08:00
import {defineConfig} from 'vite'
2024-05-22 17:03:33 +08:00
import legacy from '@vitejs/plugin-legacy'
import vue2 from '@vitejs/plugin-vue2'
import vue2Jsx from '@vitejs/plugin-vue2-jsx'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue2(),
vue2Jsx(),
legacy({
targets: ['ie >= 11'],
additionalLegacyPolyfills: ['regenerator-runtime/runtime']
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
2024-06-17 18:22:00 +08:00
},
devServer: {
port: 9000
2024-05-22 17:03:33 +08:00
}
})