Compare commits

..

1 Commits

Author SHA1 Message Date
xiaoxian521
13f61e824e refactor: 升级vitev8版本,从esbuildRollup转向RolldownOxc 2025-12-18 18:09:30 +08:00
4 changed files with 709 additions and 472 deletions

View File

@@ -97,7 +97,7 @@
"vditor": "^3.11.2", "vditor": "^3.11.2",
"version-rocket": "^1.7.4", "version-rocket": "^1.7.4",
"vue": "^3.5.25", "vue": "^3.5.25",
"vue-i18n": "^11.2.2", "vue-i18n": "https://pkg.pr.new/vue-i18n@2337",
"vue-json-pretty": "^2.6.0", "vue-json-pretty": "^2.6.0",
"vue-pdf-embed": "^2.1.3", "vue-pdf-embed": "^2.1.3",
"vue-router": "^4.6.3", "vue-router": "^4.6.3",
@@ -164,7 +164,7 @@
"typescript": "^5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "^8.49.0", "typescript-eslint": "^8.49.0",
"unplugin-icons": "^22.5.0", "unplugin-icons": "^22.5.0",
"vite": "^7.2.7", "vite": "8.0.0-beta.3",
"vite-plugin-cdn-import": "^1.0.1", "vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-fake-server": "^2.2.2", "vite-plugin-fake-server": "^2.2.2",

1148
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -345,8 +345,8 @@ onUnmounted(() => removeMatchMedia);
@click="setLayoutThemeColor(item.themeColor)" @click="setLayoutThemeColor(item.themeColor)"
> >
<el-icon <el-icon
class="mt-px" style="margin: 0.1em 0.1em 0 0"
:size="20" :size="17"
:color="getThemeColor(item.themeColor)" :color="getThemeColor(item.themeColor)"
> >
<IconifyIconOffline :icon="Check" /> <IconifyIconOffline :icon="Check" />
@@ -538,24 +538,17 @@ onUnmounted(() => removeMatchMedia);
} }
.theme-color { .theme-color {
display: flex; height: 20px;
gap: 8px;
margin-top: 8px;
li { li {
position: relative; float: left;
width: 21px; height: 20px;
height: 21px; margin-right: 8px;
cursor: pointer; cursor: pointer;
border-radius: 4px; border-radius: 4px;
box-shadow: rgb(0 0 0 / 15%) 0 0 0 1px inset;
transition: all 0.2s ease;
&:hover { &:nth-child(1) {
box-shadow: border: 1px solid #ddd;
rgb(0 0 0 / 25%) 0 0 0 1px inset,
0 2px 4px rgb(0 0 0 / 15%);
transform: scale(1.1);
} }
} }
} }

View File

@@ -42,7 +42,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
sourcemap: false, sourcemap: false,
// 消除打包大小超过500kb警告 // 消除打包大小超过500kb警告
chunkSizeWarningLimit: 4000, chunkSizeWarningLimit: 4000,
rollupOptions: { rolldownOptions: {
input: { input: {
index: pathResolve("./index.html", import.meta.url) index: pathResolve("./index.html", import.meta.url)
}, },
@@ -51,6 +51,10 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
chunkFileNames: "static/js/[name]-[hash].js", chunkFileNames: "static/js/[name]-[hash].js",
entryFileNames: "static/js/[name]-[hash].js", entryFileNames: "static/js/[name]-[hash].js",
assetFileNames: "static/[ext]/[name]-[hash].[ext]" assetFileNames: "static/[ext]/[name]-[hash].[ext]"
},
checks: {
// 禁用插件计时警告
pluginTimings: false
} }
} }
}, },