Skip to content

Commit 9b0890d

Browse files
committed
1. 忽略 VITE_CJS_IGNORE_WARNING 告警
2. 忽略 @unocss/order 和 @unocss/order-attributify 告警 3. 修复 https 配置项的告警
1 parent ff0566b commit 9b0890d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.eslintrc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ module.exports = defineConfig({
6868
],
6969
'vue/multi-word-component-names': 'off',
7070
'vue/no-v-html': 'off',
71-
'prettier/prettier': 'off' // 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
71+
'prettier/prettier': 'off', // 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
72+
'@unocss/order': 'off', // 芋艿:禁用 unocss 【css】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
73+
'@unocss/order-attributify': 'off' // 芋艿:禁用 unocss 【属性】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
7274
}
7375
})

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"private": false,
77
"scripts": {
88
"i": "pnpm install",
9-
"dev": "vite --mode local-dev",
9+
"dev": "VITE_CJS_IGNORE_WARNING=true vite --mode local-dev",
1010
"dev-server": "vite --mode dev",
1111
"ts:check": "vue-tsc --noEmit",
1212
"build:local-dev": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev",

vite.config.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
2525
root: root,
2626
// 服务端渲染
2727
server: {
28-
// 是否开启 https
29-
https: false,
30-
// 端口号
31-
port: env.VITE_PORT,
28+
port: env.VITE_PORT, // 端口号
3229
host: "0.0.0.0",
3330
open: env.VITE_OPEN === 'true',
3431
// 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域

0 commit comments

Comments
 (0)