mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
29 lines
496 B
Go
29 lines
496 B
Go
import {resolve} from 'path';
|
|
import {defineConfig} from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import dynamicImport from 'vite-plugin-dynamic-import';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: [
|
|
{find: '@', replacement: resolve(__dirname, 'src')},
|
|
],
|
|
extensions: [
|
|
'.js',
|
|
'.ts',
|
|
'.jsx',
|
|
'.tsx',
|
|
'.json',
|
|
'.vue',
|
|
'.scss',
|
|
]
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
dynamicImport(),
|
|
],
|
|
server: {
|
|
cors: true,
|
|
},
|
|
});
|