File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ Then in the root directory of the project:
4141 npx http-server -p 8000
4242 ```
4343
44- 2 . Navigate to ` http://localhost:8000/docs/local-demo.html `
45-
44+ 2 . Navigate to ` http://localhost:8000/docs `
4645
4746## Local demo
4847
@@ -55,6 +54,8 @@ The `local-demo.html` file in this directory is a copy of the hosted demo that c
55541 . Make sure the project is built:
5655 ``` bash
5756 npm run build:all
57+ # or for continuous watching:
58+ npm run dev:build
5859 ```
5960
60612 . Start up a local web server:
Original file line number Diff line number Diff line change 170170
171171.pfem__why {
172172 color : # 555 ;
173- font-style : italic;
174173 margin : 1rem 0 ;
175174 padding : 1rem 1rem ;
176175 padding-left : 1rem ;
Original file line number Diff line number Diff line change 2525 "build:browser" : " esbuild src/index.browser.ts --bundle --format=esm --outfile=dist/index.browser.js --loader:.json=json" ,
2626 "build:assets" : " mkdir -p dist/copydecks && cp -R copydecks/* dist/copydecks/" ,
2727 "build:all" : " npm run build && npm run build:browser && npm run build:assets" ,
28+ "dev:build" : " npm run build:assets && tsc -p tsconfig.json --watch & esbuild src/index.browser.ts --bundle --format=esm --outfile=dist/index.browser.js --loader:.json=json --watch" ,
2829 "test" : " vitest run" ,
2930 "dev:test" : " vitest"
3031 },
You can’t perform that action at this time.
0 commit comments