Change build instructions
This commit is contained in:
parent
d24b7ba636
commit
3640027d2b
|
@ -1 +1,2 @@
|
|||
node_modules
|
||||
node_modules
|
||||
storybook-static
|
14
README.md
14
README.md
|
@ -26,3 +26,17 @@ npm install
|
|||
```
|
||||
npm run storybook
|
||||
```
|
||||
|
||||
## Build (for deployment)
|
||||
|
||||
```
|
||||
npm run build-storybook
|
||||
```
|
||||
|
||||
The files are generated under the folder storybook-static.
|
||||
|
||||
You can preview by using the command:
|
||||
|
||||
```
|
||||
npm run preview
|
||||
```
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview",
|
||||
"preview": "npx http-server ./storybook-static",
|
||||
"format": "prettier --write ./src",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
worker: {
|
||||
format: "es",
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue