27 lines
493 B
TypeScript
27 lines
493 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import {resolve} from 'path';
|
|
|
|
function pathResolve(dir: string) {
|
|
return resolve(process.cwd(), '.', dir);
|
|
}
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
css: {
|
|
preprocessorOptions:{
|
|
less: {
|
|
javascriptEnabled: true
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: /\/@\//,
|
|
replacement: pathResolve('src') + '/',
|
|
},
|
|
],
|
|
},
|
|
})
|