Skip to content

Commit

Permalink
fix: 启动less报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Jan 6, 2024
1 parent dba52fc commit 26389f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 5 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -76,7 +76,7 @@ const config = ({ mode }) => {
imports: ['vue'],
dts: './typings/auto-imports.d.ts',
eslintrc: {
enabled: false, // 一般更新imports启动一次即可
enabled: true, // 一般更新imports启动一次即可
},
}),
vueSetupExtend(),
Expand Down Expand Up @@ -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')}';`,
},
},
},
Expand All @@ -150,7 +150,7 @@ const config = ({ mode }) => {
'/fontFile': {
target: 'https://github.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/fontFile/, ''),
rewrite: (path) => replace(/^\/fontFile/, ''),
},
},
},
Expand Down

0 comments on commit 26389f1

Please sign in to comment.