Commit 4e4ce944bcab4aaab677112b7cba9d86501e416c
1 parent
b63f7d17
feat: support dev https
Showing
2 changed files
with
43 additions
and
39 deletions
Too many changes to show.
To preserve performance only 2 of 5 files are displayed.
build/vite/plugin/index.ts
1 | -import type { Plugin } from 'vite'; | |
2 | 1 | import vue from '@vitejs/plugin-vue'; |
3 | 2 | import vueJsx from '@vitejs/plugin-vue-jsx'; |
4 | 3 | import legacy from '@vitejs/plugin-legacy'; |
5 | 4 | import purgeIcons from 'vite-plugin-purge-icons'; |
6 | 5 | import windiCSS from 'vite-plugin-windicss'; |
6 | +import VitePluginCertificate from 'vite-plugin-mkcert'; | |
7 | 7 | import vueSetupExtend from 'vite-plugin-vue-setup-extend'; |
8 | 8 | import { configHtmlPlugin } from './html'; |
9 | 9 | import { configPwaConfig } from './pwa'; |
... | ... | @@ -24,13 +24,16 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { |
24 | 24 | VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE, |
25 | 25 | } = viteEnv; |
26 | 26 | |
27 | - const vitePlugins: (Plugin | Plugin[])[] = [ | |
27 | + const vitePlugins = [ | |
28 | 28 | // have to |
29 | 29 | vue(), |
30 | 30 | // have to |
31 | 31 | vueJsx(), |
32 | 32 | // support name |
33 | 33 | vueSetupExtend(), |
34 | + VitePluginCertificate({ | |
35 | + source: 'coding', | |
36 | + }), | |
34 | 37 | ]; |
35 | 38 | |
36 | 39 | // vite-plugin-windicss | ... | ... |
package.json
... | ... | @@ -35,15 +35,15 @@ |
35 | 35 | "dependencies": { |
36 | 36 | "@ant-design/colors": "^6.0.0", |
37 | 37 | "@ant-design/icons-vue": "^6.0.1", |
38 | - "@iconify/iconify": "^2.1.0", | |
39 | - "@logicflow/core": "^0.7.16", | |
40 | - "@logicflow/extension": "^0.7.16", | |
41 | - "@vue/runtime-core": "^3.2.26", | |
42 | - "@vue/shared": "^3.2.26", | |
43 | - "@vueuse/core": "^7.4.1", | |
44 | - "@vueuse/shared": "^7.4.1", | |
38 | + "@iconify/iconify": "^2.1.1", | |
39 | + "@logicflow/core": "^1.0.7", | |
40 | + "@logicflow/extension": "^1.0.7", | |
41 | + "@vue/runtime-core": "^3.2.27", | |
42 | + "@vue/shared": "^3.2.27", | |
43 | + "@vueuse/core": "^7.5.3", | |
44 | + "@vueuse/shared": "^7.5.3", | |
45 | 45 | "@zxcvbn-ts/core": "^1.2.0", |
46 | - "ant-design-vue": "3.0.0-beta.3", | |
46 | + "ant-design-vue": "3.0.0-beta.7", | |
47 | 47 | "axios": "^0.24.0", |
48 | 48 | "codemirror": "^5.65.0", |
49 | 49 | "cropperjs": "^1.5.12", |
... | ... | @@ -58,93 +58,94 @@ |
58 | 58 | "pinia": "2.0.9", |
59 | 59 | "print-js": "^1.6.0", |
60 | 60 | "qrcode": "^1.5.0", |
61 | - "qs": "^6.10.2", | |
61 | + "qs": "^6.10.3", | |
62 | 62 | "resize-observer-polyfill": "^1.5.1", |
63 | 63 | "showdown": "^1.9.1", |
64 | 64 | "sortablejs": "^1.14.0", |
65 | 65 | "tinymce": "^5.10.2", |
66 | 66 | "vditor": "^3.8.10", |
67 | - "vue": "^3.2.26", | |
67 | + "vue": "^3.2.27", | |
68 | 68 | "vue-i18n": "^9.1.9", |
69 | 69 | "vue-json-pretty": "^1.8.2", |
70 | 70 | "vue-router": "^4.0.12", |
71 | 71 | "vue-types": "^4.1.1", |
72 | - "xlsx": "^0.17.4" | |
72 | + "xlsx": "^0.17.5" | |
73 | 73 | }, |
74 | 74 | "devDependencies": { |
75 | - "@commitlint/cli": "^16.0.1", | |
75 | + "@commitlint/cli": "^16.0.2", | |
76 | 76 | "@commitlint/config-conventional": "^16.0.0", |
77 | - "@iconify/json": "^2.0.16", | |
77 | + "@iconify/json": "^2.0.25", | |
78 | 78 | "@purge-icons/generated": "^0.7.0", |
79 | 79 | "@types/codemirror": "^5.60.5", |
80 | - "@types/crypto-js": "^4.0.2", | |
80 | + "@types/crypto-js": "^4.1.0", | |
81 | 81 | "@types/fs-extra": "^9.0.13", |
82 | 82 | "@types/inquirer": "^8.1.3", |
83 | 83 | "@types/intro.js": "^3.0.2", |
84 | - "@types/jest": "^27.0.3", | |
84 | + "@types/jest": "^27.4.0", | |
85 | 85 | "@types/lodash-es": "^4.17.5", |
86 | - "@types/mockjs": "^1.0.4", | |
87 | - "@types/node": "^17.0.5", | |
86 | + "@types/mockjs": "^1.0.6", | |
87 | + "@types/node": "^17.0.9", | |
88 | 88 | "@types/nprogress": "^0.2.0", |
89 | 89 | "@types/qrcode": "^1.4.2", |
90 | 90 | "@types/qs": "^6.9.7", |
91 | 91 | "@types/showdown": "^1.9.4", |
92 | 92 | "@types/sortablejs": "^1.10.7", |
93 | - "@typescript-eslint/eslint-plugin": "^5.8.1", | |
94 | - "@typescript-eslint/parser": "^5.8.1", | |
93 | + "@typescript-eslint/eslint-plugin": "^5.10.0", | |
94 | + "@typescript-eslint/parser": "^5.10.0", | |
95 | 95 | "@vitejs/plugin-legacy": "^1.6.4", |
96 | 96 | "@vitejs/plugin-vue": "^2.0.1", |
97 | 97 | "@vitejs/plugin-vue-jsx": "^1.3.3", |
98 | - "@vue/compiler-sfc": "3.2.26", | |
98 | + "@vue/compiler-sfc": "3.2.27", | |
99 | 99 | "@vue/test-utils": "^2.0.0-rc.18", |
100 | - "autoprefixer": "^10.4.0", | |
100 | + "autoprefixer": "^10.4.2", | |
101 | 101 | "commitizen": "^4.2.4", |
102 | 102 | "conventional-changelog-cli": "^2.2.2", |
103 | 103 | "cross-env": "^7.0.3", |
104 | - "dotenv": "^10.0.0", | |
105 | - "eslint": "^8.5.0", | |
104 | + "dotenv": "^14.2.0", | |
105 | + "eslint": "^8.7.0", | |
106 | 106 | "eslint-config-prettier": "^8.3.0", |
107 | - "eslint-define-config": "^1.2.1", | |
108 | - "eslint-plugin-jest": "^25.3.2", | |
107 | + "eslint-define-config": "^1.2.2", | |
108 | + "eslint-plugin-jest": "^25.7.0", | |
109 | 109 | "eslint-plugin-prettier": "^4.0.0", |
110 | - "eslint-plugin-vue": "^8.2.0", | |
111 | - "esno": "^0.13.0", | |
110 | + "eslint-plugin-vue": "^8.3.0", | |
111 | + "esno": "^0.14.0", | |
112 | 112 | "fs-extra": "^10.0.0", |
113 | 113 | "husky": "^7.0.4", |
114 | 114 | "inquirer": "^8.2.0", |
115 | - "jest": "^27.4.5", | |
115 | + "jest": "^27.4.7", | |
116 | 116 | "less": "^4.1.2", |
117 | - "lint-staged": "12.1.4", | |
117 | + "lint-staged": "12.1.7", | |
118 | 118 | "npm-run-all": "^4.1.5", |
119 | 119 | "postcss": "^8.4.5", |
120 | 120 | "postcss-html": "^1.3.0", |
121 | - "postcss-less": "^5.0.0", | |
121 | + "postcss-less": "^6.0.0", | |
122 | 122 | "prettier": "^2.5.1", |
123 | 123 | "rimraf": "^3.0.2", |
124 | - "rollup-plugin-visualizer": "^5.5.2", | |
124 | + "rollup-plugin-visualizer": "^5.5.4", | |
125 | 125 | "stylelint": "^14.2.0", |
126 | 126 | "stylelint-config-html": "^1.0.0", |
127 | 127 | "stylelint-config-prettier": "^9.0.3", |
128 | 128 | "stylelint-config-recommended": "^6.0.0", |
129 | 129 | "stylelint-config-standard": "^24.0.0", |
130 | 130 | "stylelint-order": "^5.0.0", |
131 | - "ts-jest": "^27.1.2", | |
131 | + "ts-jest": "^27.1.3", | |
132 | 132 | "ts-node": "^10.4.0", |
133 | 133 | "typescript": "^4.5.4", |
134 | - "vite": "^2.7.8", | |
134 | + "vite": "^2.8.0-beta.2", | |
135 | 135 | "vite-plugin-compression": "^0.4.0", |
136 | 136 | "vite-plugin-html": "^2.1.2", |
137 | 137 | "vite-plugin-imagemin": "^0.5.1", |
138 | + "vite-plugin-mkcert": "^1.5.2", | |
138 | 139 | "vite-plugin-mock": "^2.9.6", |
139 | 140 | "vite-plugin-purge-icons": "^0.7.0", |
140 | - "vite-plugin-pwa": "^0.11.12", | |
141 | + "vite-plugin-pwa": "^0.11.13", | |
141 | 142 | "vite-plugin-style-import": "^1.4.1", |
142 | - "vite-plugin-svg-icons": "^1.0.5", | |
143 | + "vite-plugin-svg-icons": "^1.1.0", | |
143 | 144 | "vite-plugin-theme": "^0.8.1", |
144 | 145 | "vite-plugin-vue-setup-extend": "^0.3.0", |
145 | - "vite-plugin-windicss": "^1.6.1", | |
146 | + "vite-plugin-windicss": "^1.6.3", | |
146 | 147 | "vue-eslint-parser": "^8.0.1", |
147 | - "vue-tsc": "^0.30.1" | |
148 | + "vue-tsc": "^0.30.5" | |
148 | 149 | }, |
149 | 150 | "resolutions": { |
150 | 151 | "bin-wrapper": "npm:bin-wrapper-china", | ... | ... |