Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9b0890d1
authored
Mar 01, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 忽略 VITE_CJS_IGNORE_WARNING 告警
2. 忽略 @unocss/order 和 @unocss/order-attributify 告警 3. 修复 https 配置项的告警
parent
ff0566bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.eslintrc.js
+3
-1
package.json
+1
-1
vite.config.ts
+1
-4
No files found.
.eslintrc.js
View file @
9b0890d1
...
@@ -68,6 +68,8 @@ module.exports = defineConfig({
...
@@ -68,6 +68,8 @@ module.exports = defineConfig({
],
],
'vue/multi-word-component-names'
:
'off'
,
'vue/multi-word-component-names'
:
'off'
,
'vue/no-v-html'
:
'off'
,
'vue/no-v-html'
:
'off'
,
'prettier/prettier'
:
'off'
// 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
'prettier/prettier'
:
'off'
,
// 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
'@unocss/order'
:
'off'
,
// 芋艿:禁用 unocss 【css】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
'@unocss/order-attributify'
:
'off'
// 芋艿:禁用 unocss 【属性】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
}
}
})
})
package.json
View file @
9b0890d1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"private"
:
false
,
"private"
:
false
,
"scripts"
:
{
"scripts"
:
{
"i"
:
"pnpm install"
,
"i"
:
"pnpm install"
,
"dev"
:
"vite --mode local-dev"
,
"dev"
:
"
VITE_CJS_IGNORE_WARNING=true
vite --mode local-dev"
,
"dev-server"
:
"vite --mode dev"
,
"dev-server"
:
"vite --mode dev"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"build:local-dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev"
,
"build:local-dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev"
,
...
...
vite.config.ts
View file @
9b0890d1
...
@@ -25,10 +25,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
...
@@ -25,10 +25,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
root
:
root
,
root
:
root
,
// 服务端渲染
// 服务端渲染
server
:
{
server
:
{
// 是否开启 https
port
:
env
.
VITE_PORT
,
// 端口号
https
:
false
,
// 端口号
port
:
env
.
VITE_PORT
,
host
:
"0.0.0.0"
,
host
:
"0.0.0.0"
,
open
:
env
.
VITE_OPEN
===
'true'
,
open
:
env
.
VITE_OPEN
===
'true'
,
// 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
// 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment