You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
564 B
30 lines
564 B
import {defineConfig} from 'vite' |
|
import vue from '@vitejs/plugin-vue' |
|
import vueJsx from '@vitejs/plugin-vue-jsx' |
|
import {resolve} from 'path' |
|
|
|
function pathResolve(dir) { |
|
return resolve(__dirname, ".", dir) |
|
} |
|
|
|
// https://vitejs.dev/config/ |
|
export default defineConfig({ |
|
base: './', |
|
plugins: [ |
|
vue(), |
|
vueJsx(), |
|
], |
|
resolve: { |
|
alias: { |
|
"@": pathResolve("src"), |
|
}, |
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] |
|
}, |
|
build: { |
|
sourcemap: false |
|
}, |
|
server: { |
|
open: true, |
|
host: '0.0.0.0' |
|
} |
|
})
|
|
|