Commit 85729f0f40db3fd14984d31263dc5bd39306c28e
1 parent
699afd1d
chore: update readme.md
Showing
5 changed files
with
65 additions
and
55 deletions
README.md
... | ... | @@ -254,4 +254,4 @@ If these plugins are helpful to you, you can give a star |
254 | 254 | |
255 | 255 | - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) |
256 | 256 | - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) |
257 | -- [vite-plugin-style-import](https://github.com/vbenjs/vite-plugin-style-import) | |
257 | +- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) | ... | ... |
README.zh-CN.md
... | ... | @@ -255,9 +255,9 @@ yarn clean:lib # 删除node_modules,兼容window系统 |
255 | 255 | |
256 | 256 | 如果这些插件对你有帮助,可以给一个 star 支持下 |
257 | 257 | |
258 | -- [vite-plugin-mock](https://github.com/vbenjs/vite-plugin-mock) | |
259 | -- [vite-plugin-html](https://github.com/vbenjs/vite-plugin-html) | |
260 | -- [vite-plugin-style-import](https://github.com/vbenjs/vite-plugin-style-import) | |
258 | +- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) | |
259 | +- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) | |
260 | +- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) | |
261 | 261 | |
262 | 262 | ## 加入我们 |
263 | 263 | ... | ... |
build/vite/plugin/index.ts
... | ... | @@ -13,7 +13,7 @@ import { configStyleImportConfig } from './styleImport'; |
13 | 13 | import { configVisualizerConfig } from './visualizer'; |
14 | 14 | |
15 | 15 | // gen vite plugins |
16 | -export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean, mode: string) { | |
16 | +export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { | |
17 | 17 | const vitePlugins: (Plugin | Plugin[])[] = []; |
18 | 18 | |
19 | 19 | // vite-plugin-html | ... | ... |
package.json
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | }, |
22 | 22 | "dependencies": { |
23 | 23 | "@iconify/iconify": "^2.0.0-rc.6", |
24 | - "@vueuse/core": "^4.0.10", | |
24 | + "@vueuse/core": "^4.0.11", | |
25 | 25 | "ant-design-vue": "2.0.0-rc.9", |
26 | 26 | "apexcharts": "^3.23.1", |
27 | 27 | "axios": "^0.21.1", |
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | "devDependencies": { |
47 | 47 | "@commitlint/cli": "^11.0.0", |
48 | 48 | "@commitlint/config-conventional": "^11.0.0", |
49 | - "@iconify/json": "^1.1.293", | |
49 | + "@iconify/json": "^1.1.294", | |
50 | 50 | "@ls-lint/ls-lint": "^1.9.2", |
51 | 51 | "@purge-icons/generated": "^0.6.0", |
52 | 52 | "@types/echarts": "^4.9.3", |
... | ... | @@ -59,17 +59,17 @@ |
59 | 59 | "@types/qrcode": "^1.3.5", |
60 | 60 | "@types/rollup-plugin-visualizer": "^2.6.0", |
61 | 61 | "@types/sortablejs": "^1.10.6", |
62 | - "@types/yargs": "^15.0.12", | |
62 | + "@types/yargs": "^16.0.0", | |
63 | 63 | "@types/zxcvbn": "^4.4.0", |
64 | 64 | "@typescript-eslint/eslint-plugin": "^4.14.1", |
65 | 65 | "@typescript-eslint/parser": "^4.14.1", |
66 | 66 | "@vitejs/plugin-legacy": "^1.2.2", |
67 | - "@vitejs/plugin-vue": "^1.1.2", | |
67 | + "@vitejs/plugin-vue": "^1.1.3", | |
68 | 68 | "@vitejs/plugin-vue-jsx": "^1.0.2", |
69 | 69 | "@vue/compiler-sfc": "^3.0.5", |
70 | 70 | "@vuedx/typecheck": "^0.6.3", |
71 | 71 | "@vuedx/typescript-plugin-vue": "^0.6.3", |
72 | - "autoprefixer": "^10.2.3", | |
72 | + "autoprefixer": "^10.2.4", | |
73 | 73 | "commitizen": "^4.2.3", |
74 | 74 | "conventional-changelog-cli": "^2.1.1", |
75 | 75 | "cross-env": "^7.0.3", |
... | ... | @@ -93,12 +93,12 @@ |
93 | 93 | "stylelint-order": "^4.1.0", |
94 | 94 | "ts-node": "^9.1.1", |
95 | 95 | "typescript": "^4.1.3", |
96 | - "vite": "2.0.0-beta.55", | |
97 | - "vite-plugin-html": "^2.0.0-beta.6", | |
96 | + "vite": "2.0.0-beta.59", | |
97 | + "vite-plugin-html": "^2.0.0-rc.3", | |
98 | 98 | "vite-plugin-mock": "^2.0.0-rc.2", |
99 | 99 | "vite-plugin-purge-icons": "^0.6.0", |
100 | 100 | "vite-plugin-pwa": "^0.4.1", |
101 | - "vite-plugin-style-import": "^0.4.6", | |
101 | + "vite-plugin-style-import": "^0.5.5", | |
102 | 102 | "vue-eslint-parser": "^7.4.1", |
103 | 103 | "yargs": "^16.2.0" |
104 | 104 | }, | ... | ... |
yarn.lock
... | ... | @@ -1112,10 +1112,10 @@ |
1112 | 1112 | dependencies: |
1113 | 1113 | cross-fetch "^3.0.6" |
1114 | 1114 | |
1115 | -"@iconify/json@^1.1.293": | |
1116 | - version "1.1.293" | |
1117 | - resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.293.tgz#f61583bb9de76fbdb3495aa7f6883a49d85c73fd" | |
1118 | - integrity sha512-0xRreoBhdMSwVP3UhPX7x5+NqpN6vrS5/UJgH4uvvLd/QlEnrfkxUy3Ld33LUXMdu1rDZwTPt6MPbbfgWkQusw== | |
1115 | +"@iconify/json@^1.1.294": | |
1116 | + version "1.1.294" | |
1117 | + resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.294.tgz#2696352e8548c3cec9084213633b008ae0941702" | |
1118 | + integrity sha512-4h+jUC2ZAtUHScR3XzbhtCyo1wExQsnokILHWqvzeTogUk/8c1jdINQHYBMq8tWdGBokvoAuPttsR1Ldaw50bg== | |
1119 | 1119 | |
1120 | 1120 | "@intlify/core-base@9.0.0-beta.16": |
1121 | 1121 | version "9.0.0-beta.16" |
... | ... | @@ -1659,10 +1659,10 @@ |
1659 | 1659 | resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9" |
1660 | 1660 | integrity sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA== |
1661 | 1661 | |
1662 | -"@types/yargs@^15.0.12": | |
1663 | - version "15.0.12" | |
1664 | - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.12.tgz#6234ce3e3e3fa32c5db301a170f96a599c960d74" | |
1665 | - integrity sha512-f+fD/fQAo3BCbCDlrUpznF1A5Zp9rB0noS5vnoormHSIPFKL0Z2DcUJ3Gxp5ytH4uLRNxy7AwYUC9exZzqGMAw== | |
1662 | +"@types/yargs@^16.0.0": | |
1663 | + version "16.0.0" | |
1664 | + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.0.tgz#0e033b23452da5d61b6c44747612cb80ac528751" | |
1665 | + integrity sha512-2nN6AGeMwe8+O6nO9ytQfbMQOJy65oi1yK2y/9oReR08DaXSGtMsrLyCM1ooKqfICpCx4oITaR4LkOmdzz41Ww== | |
1666 | 1666 | dependencies: |
1667 | 1667 | "@types/yargs-parser" "*" |
1668 | 1668 | |
... | ... | @@ -1768,10 +1768,10 @@ |
1768 | 1768 | "@vue/babel-plugin-jsx" "^1.0.1" |
1769 | 1769 | hash-sum "^2.0.0" |
1770 | 1770 | |
1771 | -"@vitejs/plugin-vue@^1.1.2": | |
1772 | - version "1.1.2" | |
1773 | - resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.1.2.tgz#64d1f0e0739675f5717015ffb4d861c53af8fe60" | |
1774 | - integrity sha512-a5ORYuPsiAO4Kb2blA/x63mDiBQBxEJkbjhVtiv5IP/I7fGfpwXPPGHx9LHD4MedpXp8icngJYMKO0hOwahtmQ== | |
1771 | +"@vitejs/plugin-vue@^1.1.3": | |
1772 | + version "1.1.3" | |
1773 | + resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.1.3.tgz#94c3822d3c2425ca240b86437b8a8c92f29e22b1" | |
1774 | + integrity sha512-RjqnMVIGoo+4dyjm8/5sAHkcbPNhFuFyQWO8OeaJMq6HBGqULHphf6J2UvnEi8TOmjfSFHJl1mzls3DtBvvz9w== | |
1775 | 1775 | |
1776 | 1776 | "@vue/babel-helper-vue-transform-on@^1.0.2": |
1777 | 1777 | version "1.0.2" |
... | ... | @@ -1985,18 +1985,18 @@ |
1985 | 1985 | vscode-languageserver-textdocument "^1.0.1" |
1986 | 1986 | vscode-uri "^2.1.2" |
1987 | 1987 | |
1988 | -"@vueuse/core@^4.0.10": | |
1989 | - version "4.0.10" | |
1990 | - resolved "https://registry.npmjs.org/@vueuse/core/-/core-4.0.10.tgz#863ae7bb9d3325908e3ce388e9050c8bec09f502" | |
1991 | - integrity sha512-2TxaF9JWutJlrgRtz9r/vFPvpaKKQ8HL5eMIiIMNBpfAkf0BZkT5HsSzphNyJ9vMhjlM+DIlhGKdWVASOdc3Aw== | |
1988 | +"@vueuse/core@^4.0.11": | |
1989 | + version "4.0.11" | |
1990 | + resolved "https://registry.npmjs.org/@vueuse/core/-/core-4.0.11.tgz#783c824d18296f82a2c28756e67b129b22a3e9f3" | |
1991 | + integrity sha512-wvfcSqMZLo0568T2rIIS4QtCAQsNz+vuoqCLgwuVxoBMr9WrMJWJEkdIxoH5+hj/YXSWYFvwTQdBto4a5S1Iuw== | |
1992 | 1992 | dependencies: |
1993 | - "@vueuse/shared" "4.0.10" | |
1993 | + "@vueuse/shared" "4.0.11" | |
1994 | 1994 | vue-demi latest |
1995 | 1995 | |
1996 | -"@vueuse/shared@4.0.10": | |
1997 | - version "4.0.10" | |
1998 | - resolved "https://registry.npmjs.org/@vueuse/shared/-/shared-4.0.10.tgz#3f175d7c33831ab7226c5c712ad2a53093a52c19" | |
1999 | - integrity sha512-x60po8a7v1tyaQNbXJWf/YTzgUzYU5rbmxKgxbxrHC2aDIcSLTMgqmwFrFpqbLwbNxvDta7z/R0MJms5bSaWwg== | |
1996 | +"@vueuse/shared@4.0.11": | |
1997 | + version "4.0.11" | |
1998 | + resolved "https://registry.npmjs.org/@vueuse/shared/-/shared-4.0.11.tgz#3188b6a9854b7db68c53a8eb3fcbb9a8adbf087b" | |
1999 | + integrity sha512-r6Hm35lsByliKtIr6/fuqo+kpbb6324nGEgu0KLMApeLfOutQKXYEAuGD81cnXAPKTHunRO0dNH8+GGRp5uPxg== | |
2000 | 2000 | dependencies: |
2001 | 2001 | vue-demi latest |
2002 | 2002 | |
... | ... | @@ -2247,13 +2247,13 @@ atob@^2.1.2: |
2247 | 2247 | resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" |
2248 | 2248 | integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== |
2249 | 2249 | |
2250 | -autoprefixer@^10.2.3: | |
2251 | - version "10.2.3" | |
2252 | - resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.2.3.tgz#2834b55b75cfc10fa80c66000a66dc94b7136804" | |
2253 | - integrity sha512-vlz+iv+EnLkVaTgX8wApfYzmK3LUfK8Z9XAnmflzxMy/+oFuNK8fVGQV79SOpBv4jxk2YQJimw4hXIKZ29570A== | |
2250 | +autoprefixer@^10.2.4: | |
2251 | + version "10.2.4" | |
2252 | + resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.2.4.tgz#c0e7cf24fcc6a1ae5d6250c623f0cb8beef2f7e1" | |
2253 | + integrity sha512-DCCdUQiMD+P/as8m3XkeTUkUKuuRqLGcwD0nll7wevhqoJfMRpJlkFd1+MQh1pvupjiQuip42lc/VFvfUTMSKw== | |
2254 | 2254 | dependencies: |
2255 | 2255 | browserslist "^4.16.1" |
2256 | - caniuse-lite "^1.0.30001178" | |
2256 | + caniuse-lite "^1.0.30001181" | |
2257 | 2257 | colorette "^1.2.1" |
2258 | 2258 | fraction.js "^4.0.13" |
2259 | 2259 | normalize-range "^0.1.2" |
... | ... | @@ -2501,11 +2501,16 @@ camelcase@^6.0.0: |
2501 | 2501 | resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" |
2502 | 2502 | integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== |
2503 | 2503 | |
2504 | -caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001173, caniuse-lite@^1.0.30001178: | |
2504 | +caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001173: | |
2505 | 2505 | version "1.0.30001179" |
2506 | 2506 | resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001179.tgz#b0803883b4471a6c62066fb1752756f8afc699c8" |
2507 | 2507 | integrity sha512-blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA== |
2508 | 2508 | |
2509 | +caniuse-lite@^1.0.30001181: | |
2510 | + version "1.0.30001181" | |
2511 | + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001181.tgz#4f0e5184e1ea7c3bf2727e735cbe7ca9a451d673" | |
2512 | + integrity sha512-m5ul/ARCX50JB8BSNM+oiPmQrR5UmngaQ3QThTTp5HcIIQGP/nPBs82BYLE+tigzm3VW+F4BJIhUyaVtEweelQ== | |
2513 | + | |
2509 | 2514 | capital-case@^1.0.4: |
2510 | 2515 | version "1.0.4" |
2511 | 2516 | resolved "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz#9d130292353c9249f6b00fa5852bee38a717e669" |
... | ... | @@ -3450,6 +3455,11 @@ error-ex@^1.2.0, error-ex@^1.3.1: |
3450 | 3455 | dependencies: |
3451 | 3456 | is-arrayish "^0.2.1" |
3452 | 3457 | |
3458 | +es-module-lexer@^0.3.26: | |
3459 | + version "0.3.26" | |
3460 | + resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.3.26.tgz#7b507044e97d5b03b01d4392c74ffeb9c177a83b" | |
3461 | + integrity sha512-Va0Q/xqtrss45hWzP8CZJwzGSZJjDM5/MJRE3IXXnUCcVLElR9BRaE9F62BopysASyc4nM3uwhSW7FFB9nlWAA== | |
3462 | + | |
3453 | 3463 | esbuild-register@^1.2.1: |
3454 | 3464 | version "1.2.1" |
3455 | 3465 | resolved "https://registry.npmjs.org/esbuild-register/-/esbuild-register-1.2.1.tgz#a430decedd7cb83ecf05141c7a7050b990724d41" |
... | ... | @@ -7688,12 +7698,13 @@ vfile@^4.0.0: |
7688 | 7698 | unist-util-stringify-position "^2.0.0" |
7689 | 7699 | vfile-message "^2.0.0" |
7690 | 7700 | |
7691 | -vite-plugin-html@^2.0.0-beta.6: | |
7692 | - version "2.0.0-beta.6" | |
7693 | - resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.0.0-beta.6.tgz#468c7f0af73ae32f2018265e3b1314b12466ff20" | |
7694 | - integrity sha512-oHV+boqFmFs25FgeuyIrNbAtwGvywYwFA+6wHx+YhXP4HzrQv4mXP71we1HM+YRRc3hhKy+HLsiLke6XCgZJ3A== | |
7701 | +vite-plugin-html@^2.0.0-rc.3: | |
7702 | + version "2.0.0-rc.3" | |
7703 | + resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.0.0-rc.3.tgz#7e0ef3227e4f55583cabeba20f3525e87666c25e" | |
7704 | + integrity sha512-D3SMz1Rxg+x5UFf1bDV7EYpCjc5HRlVSE5qoZYiriGVVDlG7RpoJe18hF37CxxfHOy/4Ote5tAJuY+zVW/N01A== | |
7695 | 7705 | dependencies: |
7696 | 7706 | ejs "^3.1.5" |
7707 | + fs-extra "^9.1.0" | |
7697 | 7708 | html-minifier-terser "^5.1.1" |
7698 | 7709 | |
7699 | 7710 | vite-plugin-mock@^2.0.0-rc.2: |
... | ... | @@ -7732,21 +7743,20 @@ vite-plugin-pwa@^0.4.1: |
7732 | 7743 | pretty-bytes "^5.5.0" |
7733 | 7744 | workbox-build "^6.0.2" |
7734 | 7745 | |
7735 | -vite-plugin-style-import@^0.4.6: | |
7736 | - version "0.4.6" | |
7737 | - resolved "https://registry.npmjs.org/vite-plugin-style-import/-/vite-plugin-style-import-0.4.6.tgz#5351f6d9f62930dbd94f3e5292d445838ae88681" | |
7738 | - integrity sha512-aCE22nLLqm7a/ugOFN2UxvFP953yXmZBxCvTHAAJ0L3kxL61o9FKQRBSblqB78LGYSGA5oGlq5GRQrdcJiaHuw== | |
7746 | +vite-plugin-style-import@^0.5.5: | |
7747 | + version "0.5.5" | |
7748 | + resolved "https://registry.npmjs.org/vite-plugin-style-import/-/vite-plugin-style-import-0.5.5.tgz#a73847d4fb9079f404d39c5a7d463f2d8943f5a6" | |
7749 | + integrity sha512-C8ISIpUhwlMt8aYj76+QhnIQnJc5SSnYVvpyFKJxUQUDM8jZIeawlsrPdydk4Ff/sBLg8Ahq1f4TEA2AItJmbA== | |
7739 | 7750 | dependencies: |
7740 | - "@babel/core" "^7.12.10" | |
7741 | - "@babel/helper-module-imports" "^7.12.5" | |
7742 | - "@babel/plugin-transform-typescript" "^7.12.1" | |
7743 | 7751 | "@rollup/pluginutils" "^4.1.0" |
7744 | 7752 | change-case "^4.1.2" |
7753 | + es-module-lexer "^0.3.26" | |
7754 | + magic-string "^0.25.7" | |
7745 | 7755 | |
7746 | -vite@2.0.0-beta.55: | |
7747 | - version "2.0.0-beta.55" | |
7748 | - resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.55.tgz#db0da6ec8f0a18cef3348881b95967d71cf3eccb" | |
7749 | - integrity sha512-IlLTGIWgOiXh9TG6UQo2UttQmymfOzkTviTQJM1Os/XDAkD/xm22vjnbix3OpbmQ0/kjE33dVmSf8aNklVOuVg== | |
7756 | +vite@2.0.0-beta.59: | |
7757 | + version "2.0.0-beta.59" | |
7758 | + resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.59.tgz#e01a795aebedc0cb44d653c33b72ab7b831057ae" | |
7759 | + integrity sha512-tlxEPFpVI1wV+vk+t/ypwBZfNmxKcorok8YF82MrQIqCDeRXnHvp33oWPIsRrO0V7UdnnlkKQOJJiIi3AIUFOA== | |
7750 | 7760 | dependencies: |
7751 | 7761 | esbuild "^0.8.34" |
7752 | 7762 | postcss "^8.2.1" | ... | ... |