Commit 6e857957371b5ff434e1661d28f3da693f086860
1 parent
d1f59b49
chore: update vite-plugin-html
Showing
3 changed files
with
15 additions
and
7 deletions
build/vite/plugin/html.ts
@@ -22,7 +22,7 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { | @@ -22,7 +22,7 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { | ||
22 | minify: isBuild, | 22 | minify: isBuild, |
23 | inject: { | 23 | inject: { |
24 | // Inject data into ejs template | 24 | // Inject data into ejs template |
25 | - injectData: { | 25 | + data: { |
26 | title: VITE_GLOB_APP_TITLE, | 26 | title: VITE_GLOB_APP_TITLE, |
27 | }, | 27 | }, |
28 | // Embed the generated app.config.js file | 28 | // Embed the generated app.config.js file |
package.json
@@ -124,7 +124,7 @@ | @@ -124,7 +124,7 @@ | ||
124 | "typescript": "4.3.5", | 124 | "typescript": "4.3.5", |
125 | "vite": "2.5.0", | 125 | "vite": "2.5.0", |
126 | "vite-plugin-compression": "^0.3.3", | 126 | "vite-plugin-compression": "^0.3.3", |
127 | - "vite-plugin-html": "^2.0.7", | 127 | + "vite-plugin-html": "^2.1.0", |
128 | "vite-plugin-imagemin": "^0.4.3", | 128 | "vite-plugin-imagemin": "^0.4.3", |
129 | "vite-plugin-mock": "^2.9.4", | 129 | "vite-plugin-mock": "^2.9.4", |
130 | "vite-plugin-purge-icons": "^0.7.0", | 130 | "vite-plugin-purge-icons": "^0.7.0", |
yarn.lock
@@ -4468,6 +4468,11 @@ dot-prop@^5.1.0: | @@ -4468,6 +4468,11 @@ dot-prop@^5.1.0: | ||
4468 | dependencies: | 4468 | dependencies: |
4469 | is-obj "^2.0.0" | 4469 | is-obj "^2.0.0" |
4470 | 4470 | ||
4471 | +dotenv-expand@^5.1.0: | ||
4472 | + version "5.1.0" | ||
4473 | + resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-5.1.0.tgz#3fbaf020bfd794884072ea26b1e9791d45a629f0" | ||
4474 | + integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== | ||
4475 | + | ||
4471 | dotenv@^10.0.0: | 4476 | dotenv@^10.0.0: |
4472 | version "10.0.0" | 4477 | version "10.0.0" |
4473 | resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" | 4478 | resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" |
@@ -11173,13 +11178,16 @@ vite-plugin-compression@^0.3.3: | @@ -11173,13 +11178,16 @@ vite-plugin-compression@^0.3.3: | ||
11173 | debug "^4.3.2" | 11178 | debug "^4.3.2" |
11174 | fs-extra "^10.0.0" | 11179 | fs-extra "^10.0.0" |
11175 | 11180 | ||
11176 | -vite-plugin-html@^2.0.7: | ||
11177 | - version "2.0.7" | ||
11178 | - resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.0.7.tgz#55139ff8a843ba3b3d5cd48610ca6f6afdf7c23d" | ||
11179 | - integrity sha512-c2fFBxRqP+jbJX/uMZ6pTXcOWZHEtjcki+u609+KIOIjhR+nDY6zBbRvCy29n9Sc0X+CBhFcj2pPLLAtS5ERJQ== | 11181 | +vite-plugin-html@^2.1.0: |
11182 | + version "2.1.0" | ||
11183 | + resolved "https://registry.yarnpkg.com/vite-plugin-html/-/vite-plugin-html-2.1.0.tgz#77b6ee11d9cdbdf766b5731fd416bacf26744fce" | ||
11184 | + integrity sha512-xdyHA/LdtmQtVTpPVqmrJaO/iuwx0k/r2M0BFnfYBloLCvp9FeCW/fR3yucQePRzE19bU72QldBE6EB1toZACw== | ||
11180 | dependencies: | 11185 | dependencies: |
11186 | + "@rollup/pluginutils" "^4.1.1" | ||
11187 | + dotenv "^10.0.0" | ||
11188 | + dotenv-expand "^5.1.0" | ||
11181 | ejs "^3.1.6" | 11189 | ejs "^3.1.6" |
11182 | - fs-extra "^9.1.0" | 11190 | + fs-extra "^10.0.0" |
11183 | html-minifier-terser "^5.1.1" | 11191 | html-minifier-terser "^5.1.1" |
11184 | 11192 | ||
11185 | vite-plugin-imagemin@^0.4.3: | 11193 | vite-plugin-imagemin@^0.4.3: |