jsoneditor/dist/which files do I need.md

1.3 KiB

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.
  • vanilla-picker, used as color picker.

This reduces the the size of the minified and gzipped JavaScript file from about 210 kB to about 70 kB (one third).

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.
  • You don't need the color picker, or want to provide your own color picker using onColorPicker.

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