1 | # Which files do I need?
|
2 |
|
3 | Ehhh, that's quite some files in this dist folder. Which files do I need?
|
4 |
|
5 |
|
6 | ## Full version
|
7 |
|
8 | If you're not sure which version to use, use the full version.
|
9 |
|
10 | Which files are needed when using the full version?
|
11 |
|
12 | - jsoneditor.min.js
|
13 | - jsoneditor.map (optional, for debugging purposes only)
|
14 | - jsoneditor.min.css
|
15 | - img/jsoneditor-icons.svg
|
16 |
|
17 |
|
18 | ## Minimalist version
|
19 |
|
20 | The minimalist version has excluded the following libraries:
|
21 |
|
22 | - `ace` (via `brace`), used for the code editor.
|
23 | - `ajv`, used for JSON schema validation.
|
24 | - `vanilla-picker`, used as color picker.
|
25 |
|
26 | This reduces the the size of the minified and gzipped JavaScript file
|
27 | from about 210 kB to about 70 kB (one third).
|
28 |
|
29 | When to use the minimalist version?
|
30 |
|
31 | - If you don't need the mode "code" and don't need JSON schema validation.
|
32 | - Or if you want to provide `ace` and/or `ajv` yourself via the configuration
|
33 | options, for example when you already use Ace in other parts of your
|
34 | web application too and don't want to bundle the library twice.
|
35 | - You don't need the color picker, or want to provide your own
|
36 | color picker using `onColorPicker`.
|
37 |
|
38 | Which files are needed when using the minimalist version?
|
39 |
|
40 | - jsoneditor-minimalist.min.js
|
41 | - jsoneditor-minimalist.map (optional, for debugging purposes only)
|
42 | - jsoneditor.min.css
|
43 | - img/jsoneditor-icons.svg
|
44 |
|