123456789101112131415161718192021222324252627282930313233343536 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import { resolve } from "path";
- // https://vitejs.dev/config/
- export default defineConfig({
-
- plugins: [vue()],
- base: './',
- resolve: {
- alias: {
- '@': resolve(__dirname, 'src'),
- },
- },
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: `@import "./src/style/mixin.scss";` // 此处全局的scss文件
- }
- }
- },
- server: {
- // https: false,
- open: true, // 启动自动打开浏览器
- // host: '0.0.0.0', //启动本地ip
- port: 5176,
- // secure:false,
- // proxy: {
- // '/api': {
- // target: 'https://zhitq.hdlkeji.com',
- // ws: false,
- // changeOrigin: true,
- // // rewrite: (path) => path.replace(/^\/api/, '')
- // }
- // }
- },
- })
|