12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { fileURLToPath, URL } from 'node:url'
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import vueDevTools from 'vite-plugin-vue-devtools'
- import prismjsPlugin from 'vite-plugin-prismjs'
- // https://vite.dev/config/
- export default defineConfig({
- plugins: [
- vue(),
- vueDevTools(),
- prismjsPlugin({
- languages: [
- 'python',
- 'javascript',
- 'java',
- 'c',
- 'cpp',
- 'csharp',
- 'go',
- 'rust',
- 'swift',
- 'kotlin',
- 'php',
- 'ruby',
- 'dart',
- 'scala',
- 'typescript',
- 'sql',
- 'json',
- 'yaml',
- 'bash',
- 'html',
- 'css',
- 'markdown',
- 'xml',
- 'less',
- 'sass',
- 'scss',
- ],
- }),
- ],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url)),
- },
- },
- server: {
- port: 5173,
- },
- })
|