@hitachivantara/app-shell-vite-plugin 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -13
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -19,31 +19,25 @@ This plugin is responsible for the hard lifting during development time and buil
|
|
|
19
19
|
|
|
20
20
|
Install the plugin:
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```sh
|
|
23
23
|
npm install -D @hitachivantara/app-shell-vite-plugin
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Add the plugin to the vite plugin list in `vite.config.ts`.
|
|
27
27
|
|
|
28
|
-
```
|
|
29
|
-
// imports omitted
|
|
28
|
+
```ts
|
|
30
29
|
import { HvAppShellVitePlugin } from "@hitachivantara/app-shell-vite-plugin";
|
|
31
30
|
|
|
32
31
|
export default defineConfig(({ mode }) => {
|
|
33
32
|
return {
|
|
34
|
-
plugins: [
|
|
35
|
-
// other plugins omitted
|
|
36
|
-
HvAppShellVitePlugin({ mode }),
|
|
37
|
-
],
|
|
33
|
+
plugins: [HvAppShellVitePlugin({ mode })],
|
|
38
34
|
};
|
|
39
35
|
});
|
|
40
36
|
```
|
|
41
37
|
|
|
42
|
-
## app-shell.config
|
|
43
|
-
|
|
44
|
-
The configuration file must be placed at the root directory of the app and the vite-plugin can process the `app-shell.config` as a JSON or Typescript extension.
|
|
38
|
+
## app-shell.config.ts
|
|
45
39
|
|
|
46
|
-
|
|
40
|
+
The configuration file must be placed at the root directory of the app and the vite-plugin can process the `app-shell.config.ts` file.
|
|
47
41
|
|
|
48
42
|
## Configuration properties
|
|
49
43
|
|
|
@@ -67,8 +61,7 @@ The `<base href="...">` tag is automatically injected at the `index.html` file d
|
|
|
67
61
|
|
|
68
62
|
In the below snippet, the value injected in the base href tag will be `/example/` regardless of the App Shell configuration file.
|
|
69
63
|
|
|
70
|
-
```
|
|
71
|
-
// other configurations omitted
|
|
64
|
+
```ts
|
|
72
65
|
export default defineConfig(({ mode }) => {
|
|
73
66
|
return {
|
|
74
67
|
plugins: [HvAppShellVitePlugin({ mode })],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/app-shell-vite-plugin",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@emotion/cache": "^11.11.0",
|
|
19
19
|
"@emotion/react": "^11.11.1",
|
|
20
|
-
"@hitachivantara/app-shell-shared": "^1.5.
|
|
21
|
-
"@hitachivantara/app-shell-ui": "^1.10.
|
|
22
|
-
"@hitachivantara/uikit-react-icons": "^5.15.
|
|
23
|
-
"@hitachivantara/uikit-react-shared": "^5.4.
|
|
20
|
+
"@hitachivantara/app-shell-shared": "^1.5.3",
|
|
21
|
+
"@hitachivantara/app-shell-ui": "^1.10.3",
|
|
22
|
+
"@hitachivantara/uikit-react-icons": "^5.15.3",
|
|
23
|
+
"@hitachivantara/uikit-react-shared": "^5.4.3",
|
|
24
24
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
25
25
|
"@rollup/plugin-json": "^6.0.0",
|
|
26
26
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"./package.json": "./package.json"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "d260751e0d2244d0f37e5368f954d5a261a6535e"
|
|
60
60
|
}
|