File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 36
36
yarn build
37
37
```
38
38
39
+ Note that small [ images are inlined] ( https://vitejs.dev/guide/assets ) in scripts
40
+ or stylesheets for performance reasons.
41
+
42
+ The resulting ` index.html ` will include static assets using absolute paths.
43
+ By default the assets are included from ` /assets/* ` . Change this path using
44
+ the ` --assetsDir ` option, see [ the build oprtions] ( https://vitejs.dev/guide/cli.html#options-1 ) ;
45
+
46
+ To change the path prefix, specify the ` --base ` option during a build, e.g.:
47
+
48
+ ``` sh
49
+ yarn build --base /static
50
+ ```
51
+
52
+ In that case assets will be included from ` /static/assets/* ` ,
53
+ but the output directory structure wil not change.
54
+ See [ the documentation on base] ( https://vitejs.dev/config/shared-options.html#base ) ;
55
+
39
56
## Linting
40
57
41
58
``` sh
Original file line number Diff line number Diff line change 4
4
"version" : " 0.0.1" ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
- "dev" : " vite" ,
8
- "build" : " tsc && vite build --outDir public" ,
7
+ "dev" : " ROTO_API_HOST=https://rest.bgp-api.net ROUTINATOR_API_HOST=https://routinator.do.nlnetlabs.nl vite" ,
8
+ "build" : " tsc && vite build --outDir public --mode production " ,
9
9
"lint" : " eslint && tsc --noEmit" ,
10
10
"format" : " prettier --write \" **/*.(ts|tsx|css)\" " ,
11
11
"test" : " jest"
You can’t perform that action at this time.
0 commit comments