jsoneditor/dist/which files do I need.md

45 lines
1.3 KiB
Markdown
Raw Normal View History

2016-01-15 04:26:39 +08:00
# Which files do I need?
Ehhh, that's quite some files in this dist folder. Which files do I need?
## Full version
If you're not sure which version to use, use the full version.
Which files are needed when using the full version?
- jsoneditor.min.js
- jsoneditor.map (optional, for debugging purposes only)
- jsoneditor.min.css
- img/jsoneditor-icons.svg
## Minimalist version
The minimalist version has excluded the following libraries:
- `ace` (via `brace`), used for the code editor.
- `ajv`, used for JSON schema validation.
2018-08-23 03:19:11 +08:00
- `vanilla-picker`, used as color picker.
2016-01-15 04:26:39 +08:00
2018-08-23 03:19:11 +08:00
This reduces the the size of the minified and gzipped JavaScript file
from about 210 kB to about 70 kB (one third).
2016-01-15 04:26:39 +08:00
When to use the minimalist version?
- If you don't need the mode "code" and don't need JSON schema validation.
- Or if you want to provide `ace` and/or `ajv` yourself via the configuration
options, for example when you already use Ace in other parts of your
web application too and don't want to bundle the library twice.
2018-08-23 03:19:11 +08:00
- You don't need the color picker, or want to provide your own
color picker using `onColorPicker`.
2016-01-15 04:26:39 +08:00
Which files are needed when using the minimalist version?
- jsoneditor-minimalist.min.js
- jsoneditor-minimalist.map (optional, for debugging purposes only)
- jsoneditor.min.css
- img/jsoneditor-icons.svg