@jtl-software/cloud-app-template-frontend-react 0.0.14 → 0.0.15
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/vite.config.ts +15 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @jtl/cloud-app-template-frontend-react
|
|
2
2
|
|
|
3
|
+
## 0.0.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#48](https://github.com/jtl-software/cloud-apps-cli/pull/48) [`5b1b22b`](https://github.com/jtl-software/cloud-apps-cli/commit/5b1b22b6943ec7e37cf701305b0da9eb846c906a) Thanks [@tobilen](https://github.com/tobilen)! - Add link to proceed to the hub. Open the app when run with npm run dev
|
|
8
|
+
|
|
3
9
|
## 0.0.14
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
2
|
-
import react from
|
|
3
|
-
import tailwindcss from
|
|
4
|
-
import path from
|
|
5
|
-
import { createRequire } from
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import react from "@vitejs/plugin-react-swc";
|
|
3
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import { createRequire } from "node:module";
|
|
6
6
|
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
8
|
|
|
@@ -10,9 +10,13 @@ const require = createRequire(import.meta.url);
|
|
|
10
10
|
export default defineConfig({
|
|
11
11
|
server: {
|
|
12
12
|
port: 3004,
|
|
13
|
+
// Vite delegates to the OS opener (`open`/`start`/`xdg-open`), which
|
|
14
|
+
// reuses an existing tab on the dev URL when the browser supports it
|
|
15
|
+
// (Chrome, Safari, Edge) instead of opening a new one.
|
|
16
|
+
open: true,
|
|
13
17
|
proxy: {
|
|
14
|
-
|
|
15
|
-
target:
|
|
18
|
+
"/api": {
|
|
19
|
+
target: "http://localhost:3005",
|
|
16
20
|
changeOrigin: true,
|
|
17
21
|
},
|
|
18
22
|
},
|
|
@@ -20,7 +24,10 @@ export default defineConfig({
|
|
|
20
24
|
plugins: [tailwindcss(), react()],
|
|
21
25
|
resolve: {
|
|
22
26
|
alias: {
|
|
23
|
-
|
|
27
|
+
"/assets": path.join(
|
|
28
|
+
path.dirname(require.resolve("@jtl-software/platform-ui-react")),
|
|
29
|
+
"assets",
|
|
30
|
+
),
|
|
24
31
|
},
|
|
25
32
|
},
|
|
26
33
|
});
|