Skip to content

Commit 4cb49c0

Browse files
committed
更新包
1 parent 1704038 commit 4cb49c0

File tree

3 files changed

+80
-82
lines changed

3 files changed

+80
-82
lines changed

build/vite/plugin/imagemin.ts

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
// Image resource files used to compress the output of the production environment
2-
// https://github.com/anncwb/vite-plugin-imagemin
3-
import viteImagemin from 'vite-plugin-imagemin';
1+
// // Image resource files used to compress the output of the production environment
2+
// // https://github.com/anncwb/vite-plugin-imagemin
3+
// import viteImagemin from 'vite-plugin-imagemin';
44

5-
export function configImageminPlugin() {
6-
const plugin = viteImagemin({
7-
gifsicle: {
8-
optimizationLevel: 7,
9-
interlaced: false,
10-
},
11-
optipng: {
12-
optimizationLevel: 7,
13-
},
14-
mozjpeg: {
15-
quality: 20,
16-
},
17-
pngquant: {
18-
quality: [0.8, 0.9],
19-
speed: 4,
20-
},
21-
svgo: {
22-
plugins: [
23-
{
24-
name: 'removeViewBox',
25-
},
26-
{
27-
name: 'removeEmptyAttrs',
28-
active: false,
29-
},
30-
],
31-
},
32-
});
33-
return plugin;
34-
}
5+
// export function configImageminPlugin() {
6+
// const plugin = viteImagemin({
7+
// gifsicle: {
8+
// optimizationLevel: 7,
9+
// interlaced: false,
10+
// },
11+
// optipng: {
12+
// optimizationLevel: 7,
13+
// },
14+
// mozjpeg: {
15+
// quality: 20,
16+
// },
17+
// pngquant: {
18+
// quality: [0.8, 0.9],
19+
// speed: 4,
20+
// },
21+
// svgo: {
22+
// plugins: [
23+
// {
24+
// name: 'removeViewBox',
25+
// },
26+
// {
27+
// name: 'removeEmptyAttrs',
28+
// active: false,
29+
// },
30+
// ],
31+
// },
32+
// });
33+
// return plugin;
34+
// }

build/vite/plugin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { configVisualizerConfig } from './visualizer';
1515
import { configThemePlugin } from './theme';
1616
import { configImageminPlugin } from './imagemin';
1717
import { configSvgIconsPlugin } from './svgSprite';
18-
import { mars3dPlugin } from 'vite-plugin-mars3d';
18+
import { vitePluginMars3d as mars3dPlugin } from 'vite-plugin-mars3d';
1919
import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
2020

2121
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
@@ -72,7 +72,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
7272
// The following plugins only work in the production environment
7373
if (isBuild) {
7474
// vite-plugin-imagemin
75-
VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin());
75+
// VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin());
7676

7777
// rollup-plugin-gzip
7878
vitePlugins.push(

package.json

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"name": "mars3d-vue-project-admin",
33
"version": "3.5.0",
44
"scripts": {
5-
"bootstrap": "pnpm install",
6-
"serve": "npm run dev",
75
"dev": "vite",
6+
"serve": "npm run clean:cache && vite",
87
"build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
98
"build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts",
109
"build:no-cache": "pnpm clean:cache && npm run build",
@@ -28,24 +27,24 @@
2827
"dependencies": {
2928
"@ant-design/colors": "^6.0.0",
3029
"@ant-design/icons-vue": "^6.1.0",
31-
"@icon-park/svg": "^1.4.0",
32-
"@iconify/iconify": "^2.2.1",
33-
"@logicflow/core": "^1.1.13",
34-
"@logicflow/extension": "^1.1.13",
30+
"@icon-park/svg": "^1.4.2",
31+
"@iconify/iconify": "^3.1.0",
32+
"@logicflow/core": "^1.2.1",
33+
"@logicflow/extension": "^1.2.1",
3534
"@turf/turf": "^6.5.0",
3635
"@vue/runtime-core": "^3.2.33",
37-
"@vue/shared": "^3.2.33",
38-
"@vueuse/core": "^8.3.0",
39-
"@vueuse/shared": "^8.3.0",
40-
"@zxcvbn-ts/core": "^2.0.1",
41-
"ant-design-vue": "^3.2.0",
36+
"@vue/shared": "^3.2.47",
37+
"@vueuse/core": "^9.13.0",
38+
"@vueuse/shared": "^9.13.0",
39+
"@zxcvbn-ts/core": "^2.2.1",
40+
"ant-design-vue": "^3.2.17",
4241
"axios": "^0.26.1",
43-
"codemirror": "^5.65.3",
42+
"codemirror": "^5.65.12",
4443
"core-js": "^3.20.3",
4544
"cropperjs": "^1.5.12",
4645
"crypto-js": "^4.1.1",
47-
"dayjs": "^1.11.1",
48-
"echarts": "^5.3.2",
46+
"dayjs": "^1.11.7",
47+
"echarts": "^5.4.2",
4948
"intro.js": "^5.1.0",
5049
"kml-geojson": "^1.2.0",
5150
"localforage": "^1.10.0",
@@ -55,52 +54,53 @@
5554
"mars3d-cesium": "^1.106.0",
5655
"mockjs": "^1.1.0",
5756
"nprogress": "^0.2.0",
58-
"path-to-regexp": "^6.2.0",
59-
"pinia": "2.0.12",
57+
"path-to-regexp": "^6.2.1",
58+
"pinia": "2.0.33",
6059
"print-js": "^1.6.0",
61-
"qrcode": "^1.5.0",
62-
"qs": "^6.10.3",
60+
"qrcode": "^1.5.1",
61+
"qs": "^6.11.1",
6362
"resize-observer-polyfill": "^1.5.1",
6463
"showdown": "^2.1.0",
6564
"sortablejs": "^1.15.0",
66-
"tinymce": "^5.10.3",
65+
"tinymce": "^5.10.7",
6766
"uuid": "^8.3.2",
68-
"vditor": "^3.8.13",
69-
"vue": "^3.2.33",
67+
"vditor": "^3.9.1",
68+
"vue": "^3.2.47",
7069
"vue-color-kit": "^1.0.5",
71-
"vue-i18n": "^9.1.9",
72-
"vue-json-pretty": "^2.0.6",
73-
"vue-router": "^4.0.14",
74-
"vue-types": "^4.1.1",
75-
"vuex": "^4.0.2",
70+
"vue-i18n": "^9.2.2",
71+
"vue-json-pretty": "^2.2.4",
72+
"vue-router": "^4.1.6",
73+
"vue-types": "^5.0.2",
74+
"vuex": "^4.1.0",
7675
"xlsx": "^0.18.5"
7776
},
7877
"devDependencies": {
79-
"@commitlint/cli": "^16.2.3",
80-
"@commitlint/config-conventional": "^16.2.1",
81-
"@iconify/json": "^2.1.30",
82-
"@purge-icons/generated": "^0.8.1",
83-
"@types/codemirror": "^5.60.5",
78+
"@originjs/vite-plugin-commonjs": "^1.0.3",
79+
"@commitlint/cli": "^17.5.1",
80+
"@commitlint/config-conventional": "^17.4.4",
81+
"@iconify/json": "^2.2.46",
82+
"@purge-icons/generated": "^0.9.0",
83+
"@types/codemirror": "^5.60.7",
8484
"@types/crypto-js": "^4.1.1",
8585
"@types/fs-extra": "^9.0.13",
8686
"@types/inquirer": "^8.2.1",
87-
"@types/intro.js": "^3.0.2",
88-
"@types/lodash-es": "^4.17.6",
89-
"@types/mockjs": "^1.0.6",
87+
"@types/intro.js": "^5.1.1",
88+
"@types/lodash-es": "^4.17.7",
89+
"@types/mockjs": "^1.0.7",
9090
"@types/node": "^17.0.25",
9191
"@types/nprogress": "^0.2.0",
92-
"@types/qrcode": "^1.4.2",
92+
"@types/qrcode": "^1.5.0",
9393
"@types/qs": "^6.9.7",
94-
"@types/showdown": "^1.9.4",
95-
"@types/sortablejs": "^1.10.7",
94+
"@types/showdown": "^2.0.0",
95+
"@types/sortablejs": "^1.15.1",
9696
"@typescript-eslint/eslint-plugin": "^5.20.0",
9797
"@typescript-eslint/parser": "^5.20.0",
9898
"@vitejs/plugin-legacy": "^1.8.1",
9999
"@vitejs/plugin-vue": "^2.3.1",
100100
"@vitejs/plugin-vue-jsx": "^1.3.10",
101-
"@vue/compiler-sfc": "^3.2.33",
101+
"@vue/compiler-sfc": "^3.2.47",
102102
"@vue/eslint-config-typescript": "^10.0.0",
103-
"@vue/test-utils": "^2.0.0-rc.21",
103+
"@vue/test-utils": "^2.3.2",
104104
"autoprefixer": "^10.4.4",
105105
"commitizen": "^4.2.4",
106106
"consola": "^2.15.3",
@@ -126,7 +126,7 @@
126126
"postcss-html": "^1.4.1",
127127
"postcss-less": "^6.0.0",
128128
"prettier": "^2.6.2",
129-
"rimraf": "^3.0.2",
129+
"rimraf": "^4.1.2",
130130
"rollup": "^2.70.2",
131131
"rollup-plugin-visualizer": "^5.6.0",
132132
"serve-static": "^1.14.2",
@@ -140,13 +140,12 @@
140140
"ts-node": "^10.7.0",
141141
"typescript": "~4.6.4",
142142
"unplugin-vue-components": "^0.17.13",
143-
"vite": "^2.9.5",
143+
"vite": "^2.8.0",
144144
"vite-plugin-compression": "^0.5.1",
145145
"vite-plugin-eslint": "^1.3.0",
146146
"vite-plugin-html": "^3.2.0",
147-
"vite-plugin-imagemin": "^0.6.1",
148-
"vite-plugin-mars3d": "^3.0.0",
149-
"vite-plugin-mkcert": "^1.6.0",
147+
"vite-plugin-mars3d": "^2.0.3",
148+
"vite-plugin-mkcert": "~1.6.0",
150149
"vite-plugin-mock": "^2.9.6",
151150
"vite-plugin-purge-icons": "^0.8.1",
152151
"vite-plugin-pwa": "^0.11.13",
@@ -156,12 +155,11 @@
156155
"vite-plugin-vue-setup-extend": "^0.4.0",
157156
"vite-plugin-windicss": "^1.8.4",
158157
"vue-eslint-parser": "^8.3.0",
159-
"vue-tsc": "^0.33.9"
158+
"vue-tsc": "^1.2.0"
160159
},
161160
"resolutions": {
162161
"bin-wrapper": "npm:bin-wrapper-china",
163-
"rollup": "^2.56.3",
164-
"gifsicle": "5.2.0"
162+
"rollup": "^2.56.3"
165163
},
166164
"repository": {
167165
"type": "git",

0 commit comments

Comments
 (0)