| 12345678910111213141516171819 |
- import { defineConfig } from 'vite';
- import vue from '@vitejs/plugin-vue';
- import path from 'path';
- // https://vitejs.dev/config/
- export default defineConfig({
- base: process.env.NODE_ENV === 'production' ? '/admin/' : '/',
- plugins: [vue()],
- css: {
- preprocessorOptions: {
- less: {
- modifyVars: {
- hack: `true; @import (reference) "${path.resolve('src/style/common.less')}";`
- },
- javascriptEnabled: true
- }
- }
- }
- });
|