forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a84228
commit 995a03b
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# Vite App | ||
# Pigment CSS with Vite - Demo app | ||
|
||
A sample vite application to test the working of zero runtime library. | ||
This is a Pigment CSS with [Vite](https://vitejs.dev/) project. | ||
This project is not part of the workspace yet. | ||
|
||
## How to run | ||
|
||
You can either run `pnpm build` command to build all the packages, or you need to build, the the minimum - | ||
You can either run `pnpm build` command to build all the packages or build just the most important ones: | ||
|
||
1. `@pigment-css/react` | ||
2. `@pigment-css/vite-plugin` | ||
|
||
Make sure you have also run `pnpm release:build` at least once because we also use `@mui/material` and `@mui/system` packages. On subsequent runs, you can only build the above packages using - | ||
Make sure you have run `pnpm release:build` at least once because the project is also using `@mui/material` and `@mui/system` packages. On subsequent runs, you can only build the above packages using: | ||
|
||
```bash | ||
pnpm build | ||
``` | ||
|
||
After building, you can run the project by changing into the directory and then | ||
After building, you can run the project by changing into the directory and then: | ||
|
||
1. Install dependencies using `pnpm install` | ||
2. Start the dev server using `pnpm dev` | ||
3. Build the code using `pnpm build` | ||
|
||
Optionally, before running the dev server, you can run `pnpm vite optimize --force` if it logged some error during `pnpm vite`. | ||
|
||
If you see and error like package `@pigment-css/react` not found, add it as a peer-dependency in `@mui/material`'s `package.json` file and run `pnpm build` and `pnpm install` again. Make sure to not push this change to git. | ||
If you see and error like "package `@pigment-css/react` not found", add it as a peer-dependency in `@mui/material`'s `package.json` file and run `pnpm build` and `pnpm install` again. Make sure to not push this change to git. |