From 26389f1b54222d366edc1dd262212ccc0d94e5cf Mon Sep 17 00:00:00 2001 From: June <1601745371@qq.com> Date: Sat, 6 Jan 2024 22:05:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=AF=E5=8A=A8less=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 2 +- vite.config.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e8ed7b05..8889d425 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "eslint.enable": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", diff --git a/vite.config.ts b/vite.config.ts index c83bad4e..7edda322 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,8 +3,8 @@ * @version: * @Author: June * @Date: 2023-04-24 00:25:39 - * @LastEditors: 秦少卫 - * @LastEditTime: 2023-08-11 10:13:09 + * @LastEditors: June + * @LastEditTime: 2024-01-06 22:03:40 */ import { defineConfig, loadEnv } from 'vite'; import vue from '@vitejs/plugin-vue'; @@ -76,7 +76,7 @@ const config = ({ mode }) => { imports: ['vue'], dts: './typings/auto-imports.d.ts', eslintrc: { - enabled: false, // 一般更新imports启动一次即可 + enabled: true, // 一般更新imports启动一次即可 }, }), vueSetupExtend(), @@ -139,7 +139,7 @@ const config = ({ mode }) => { preprocessorOptions: { less: { javascriptEnabled: true, - additionalData: `@import '${resolve(__dirname, 'src/styles/variable.less')}";`, + additionalData: `@import '${resolve(__dirname, 'src/styles/variable.less')}';`, }, }, }, @@ -150,7 +150,7 @@ const config = ({ mode }) => { '/fontFile': { target: 'https://github.com/', changeOrigin: true, - rewrite: (path) => path.replace(/^\/fontFile/, ''), + rewrite: (path) => replace(/^\/fontFile/, ''), }, }, },