2020-12-09 08:55:57 +08:00
|
|
|
import type { UserConfig } from 'vite'
|
2020-12-13 22:46:41 +08:00
|
|
|
const path = require('path')
|
2020-12-09 08:55:57 +08:00
|
|
|
|
|
|
|
const viteConfig: UserConfig = {
|
|
|
|
port: 8080,
|
|
|
|
hostname: 'localhost',
|
2020-12-15 17:48:55 +08:00
|
|
|
open: false,
|
|
|
|
base: "./",
|
2020-12-13 22:46:41 +08:00
|
|
|
alias: {
|
|
|
|
'/@/': path.resolve(__dirname, './src'),
|
|
|
|
'/@assets/': path.resolve(__dirname, './src/assets'),
|
|
|
|
'/@views/': path.resolve(__dirname, './src/views'),
|
|
|
|
'/@components/': path.resolve(__dirname, './src/components'),
|
|
|
|
'/@utils/': path.resolve(__dirname, './src/utils')
|
|
|
|
}
|
2020-12-09 08:55:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default viteConfig
|