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.

26 lines
589 B

3 years ago
import {defineConfig} from 'vite'
3 years ago
import vue from '@vitejs/plugin-vue'
3 years ago
import {resolve} from "path";
3 years ago
import eslintPlugin from 'vite-plugin-eslint'
3 years ago
// https://vitejs.dev/config/
export default defineConfig({
3 years ago
plugins: [vue(),
eslintPlugin({
include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue']
})],
3 years ago
server: {
host: '0.0.0.0',
port: 3000,
open: true
},
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, 'src')
}
]
}
3 years ago
})