Skip to content

Commit 5deb11f

Browse files
committed
updated vite commands, readme
Signed-off-by: bidi <bidi@apidemia.com>
1 parent bd1e38e commit 5deb11f

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ composer development-enable
9999
100100
- If not already done, remove the `.dist` extension from `config/autoload/development.local.php.dist`.
101101
102-
## Bundle Static Modules
102+
## Bundling Static Modules
103103
104104
> Prerequisite software: Node.js v20 (minimum supported version)
105105
@@ -109,10 +109,14 @@ To install dependencies into the `node_modules` directory run this command.
109109
npm install
110110
```
111111
112-
> If `npm install` fails, this could be caused by user permissions of npm.
113-
Recommendation is to install npm through `Node Version Manager`.
112+
If `npm install` fails, this could be caused by user permissions of npm.
113+
We recommend installing npm through `Node Version Manager`.
114114
115-
The build command compiles the components then monitors the source files and triggers their recompilation when one of them is changed.
115+
> You can skip the next step until you make changes in the `src/App/assets` folder
116+
117+
The build command compiles the components from the `src/App/assets` folder into the `public` folder.
118+
119+
> This command overwrites existing files in the `public` folder.
116120
117121
```shell
118122
npm run build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8-
"build": "vite build --watch"
8+
"watch": "vite build --watch",
9+
"build": "vite build"
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)