@salmansaeed/nexa 1.0.2 → 1.0.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/bin/nexa.js CHANGED
@@ -831,8 +831,8 @@ coverage/
831
831
  dev: "node run.js",
832
832
  start: "node run.js",
833
833
  nexa: "node run.js",
834
- build: "vite build",
835
- preview: "vite preview",
834
+ build: "vite build --config nexa.config.js",
835
+ preview: "vite preview --config nexa.config.js",
836
836
  },
837
837
  dependencies: {
838
838
  react: "^18.3.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salmansaeed/nexa",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Nexa CLI for scaffolding React/Vite apps, components, services, and contexts with a cleaner UI and prebuilt structure",
5
5
  "bin": {
6
6
  "nexa": "bin/nexa.js"
@@ -8,13 +8,14 @@ import react from "@vitejs/plugin-react";
8
8
 
9
9
  export default defineConfig({
10
10
  root: ".",
11
- base: "/",
11
+ base: "./",
12
12
  plugins: [react()],
13
13
  server: {
14
14
  port: 4321,
15
15
  },
16
16
  build: {
17
17
  outDir: "dist",
18
+ emptyOutDir: true,
18
19
  },
19
20
  clearScreen: false,
20
21
  });
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link rel="icon" type="image/svg+xml" href="/nexa.svg" />
7
- <link rel="manifest" href="/manifest.json" />
6
+ <link rel="icon" type="image/svg+xml" href="./nexa.svg" />
7
+ <link rel="manifest" href="./manifest.json" />
8
8
  <title>AG App</title>
9
9
  </head>
10
10
  <body>