Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
夏日掠影
vue-vben-admin
提交
8a3f47d6
V
vue-vben-admin
项目概览
夏日掠影
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8a3f47d6
编写于
6月 01, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: adjust setting
上级
eca8907a
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
168 addition
and
183 deletion
+168
-183
.vscode/settings.json
.vscode/settings.json
+1
-13
build/vite/plugin/index.ts
build/vite/plugin/index.ts
+4
-4
build/vite/plugin/windicss.ts
build/vite/plugin/windicss.ts
+0
-12
package.json
package.json
+11
-11
src/main.ts
src/main.ts
+4
-2
yarn.lock
yarn.lock
+148
-141
未找到文件。
.vscode/settings.json
浏览文件 @
8a3f47d6
...
...
@@ -102,10 +102,6 @@
//
================
Eslint
===================
//
===========================================
"eslint.alwaysShowStatus"
:
true
,
"eslint.options"
:
{
"plugins"
:
[
"html"
,
"vue"
,
"javascript"
,
"jsx"
,
"typescript"
],
"extensions"
:
[
".js"
,
".jsx"
,
".ts"
,
".tsx"
,
".vue"
]
},
"eslint.validate"
:
[
"javascript"
,
"typescript"
,
...
...
@@ -119,7 +115,7 @@
//
===========================================
"vetur.experimental.templateInterpolationService"
:
true
,
"vetur.format.options.tabSize"
:
2
,
"vetur.format.defaultFormatter.html"
:
"
js-beautify-html
"
,
"vetur.format.defaultFormatter.html"
:
"
prettier
"
,
"vetur.format.defaultFormatter.scss"
:
"prettier"
,
"vetur.format.defaultFormatter.css"
:
"prettier"
,
"vetur.format.defaultFormatter.ts"
:
"prettier-tslint"
,
...
...
@@ -128,18 +124,10 @@
"vetur.format.defaultFormatterOptions"
:
{
"js-beautify-html"
:
{
"wrap_attributes"
:
"force-expand-multiline"
},
"prettier"
:
{
"eslintIntegration"
:
true
,
"arrowParens"
:
"always"
,
"semi"
:
false
,
"singleQuote"
:
true
}
},
"liveServer.settings.donotShowInfoMsg"
:
true
,
"terminal.integrated.rendererType"
:
"dom"
,
"telemetry.enableCrashReporter"
:
false
,
"telemetry.enableTelemetry"
:
false
,
"workbench.settings.enableNaturalLanguageSearch"
:
false
,
"path-intellisense.mappings"
:
{
"/@/"
:
"${workspaceRoot}/src"
...
...
build/vite/plugin/index.ts
浏览文件 @
8a3f47d6
...
...
@@ -4,7 +4,8 @@ import vue from '@vitejs/plugin-vue';
import
vueJsx
from
'
@vitejs/plugin-vue-jsx
'
;
import
legacy
from
'
@vitejs/plugin-legacy
'
;
import
PurgeIcons
from
'
vite-plugin-purge-icons
'
;
import
purgeIcons
from
'
vite-plugin-purge-icons
'
;
import
windiCSS
from
'
vite-plugin-windicss
'
;
import
{
configHtmlPlugin
}
from
'
./html
'
;
import
{
configPwaConfig
}
from
'
./pwa
'
;
...
...
@@ -14,7 +15,6 @@ import { configStyleImportPlugin } from './styleImport';
import
{
configVisualizerConfig
}
from
'
./visualizer
'
;
import
{
configThemePlugin
}
from
'
./theme
'
;
import
{
configImageminPlugin
}
from
'
./imagemin
'
;
import
{
configWindiCssPlugin
}
from
'
./windicss
'
;
import
{
configSvgIconsPlugin
}
from
'
./svgSprite
'
;
import
{
configHmrPlugin
}
from
'
./hmr
'
;
...
...
@@ -47,13 +47,13 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
vitePlugins
.
push
(
configSvgIconsPlugin
(
isBuild
));
// vite-plugin-windicss
vitePlugins
.
push
(
configWindiCssPlugin
());
vitePlugins
.
push
(
windiCSS
());
// vite-plugin-mock
VITE_USE_MOCK
&&
vitePlugins
.
push
(
configMockPlugin
(
isBuild
));
// vite-plugin-purge-icons
vitePlugins
.
push
(
P
urgeIcons
());
vitePlugins
.
push
(
p
urgeIcons
());
// vite-plugin-style-import
vitePlugins
.
push
(
configStyleImportPlugin
(
isBuild
));
...
...
build/vite/plugin/windicss.ts
已删除
100644 → 0
浏览文件 @
eca8907a
import
type
{
Plugin
}
from
'
vite
'
;
import
windiCSS
from
'
vite-plugin-windicss
'
;
export
function
configWindiCssPlugin
():
Plugin
[]
{
return
windiCSS
({
safelist
:
'
no-select
'
,
preflight
:
{
enableAll
:
true
,
},
});
}
package.json
浏览文件 @
8a3f47d6
...
...
@@ -9,7 +9,7 @@
"scripts"
:
{
"bootstrap"
:
"yarn install"
,
"serve"
:
"npm run dev"
,
"dev"
:
"
cross-env --max_old_space_size=4096
vite"
,
"dev"
:
"vite"
,
"build"
:
"vite build && esno ./build/script/postBuild.ts"
,
"build:no-cache"
:
"yarn clean:cache && npm run build"
,
"report"
:
"cross-env REPORT=true npm run build"
,
...
...
@@ -33,8 +33,8 @@
},
"dependencies"
:
{
"
@iconify/iconify
"
:
"
^2.0.1
"
,
"
@logicflow/core
"
:
"
^0.4.1
0
"
,
"
@logicflow/extension
"
:
"
^0.4.1
0
"
,
"
@logicflow/core
"
:
"
^0.4.1
1
"
,
"
@logicflow/extension
"
:
"
^0.4.1
2
"
,
"
@vueuse/core
"
:
"
^4.11.2
"
,
"
@zxcvbn-ts/core
"
:
"
^0.3.0
"
,
"
ant-design-vue
"
:
"
2.1.2
"
,
...
...
@@ -76,11 +76,11 @@
"
@types/qrcode
"
:
"
^1.4.0
"
,
"
@types/qs
"
:
"
^6.9.6
"
,
"
@types/sortablejs
"
:
"
^1.10.6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
5
.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
5
.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.4.
0
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.
2
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
4
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
6
.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
6
.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.4.
1
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.
3
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
5
"
,
"
@vue/compiler-sfc
"
:
"
3.0.11
"
,
"
autoprefixer
"
:
"
^10.2.6
"
,
"
commitizen
"
:
"
^4.2.4
"
,
...
...
@@ -115,15 +115,15 @@
"
vite-plugin-compression
"
:
"
^0.2.5
"
,
"
vite-plugin-html
"
:
"
^2.0.7
"
,
"
vite-plugin-imagemin
"
:
"
^0.3.2
"
,
"
vite-plugin-mock
"
:
"
^2.7.0
-beta.1
"
,
"
vite-plugin-mock
"
:
"
^2.7.0
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.7.3
"
,
"
vite-plugin-style-import
"
:
"
^0.10.1
"
,
"
vite-plugin-svg-icons
"
:
"
^0.
6.2
"
,
"
vite-plugin-svg-icons
"
:
"
^0.
7.0
"
,
"
vite-plugin-theme
"
:
"
^0.8.1
"
,
"
vite-plugin-windicss
"
:
"
^0.16.7
"
,
"
vue-eslint-parser
"
:
"
^7.6.0
"
,
"
vue-tsc
"
:
"
^0.1.
6
"
"
vue-tsc
"
:
"
^0.1.
7
"
},
"resolutions"
:
{
"//"
:
"Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it"
,
...
...
src/main.ts
浏览文件 @
8a3f47d6
...
...
@@ -23,7 +23,7 @@ if (import.meta.env.DEV) {
import
(
'
ant-design-vue/dist/antd.less
'
);
}
(
async
()
=>
{
async
function
bootstrap
()
{
const
app
=
createApp
(
App
);
// Configure store
...
...
@@ -55,4 +55,6 @@ if (import.meta.env.DEV) {
await
router
.
isReady
();
app
.
mount
(
'
#app
'
,
true
);
})();
}
void
bootstrap
();
yarn.lock
浏览文件 @
8a3f47d6
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录