文章归档文章分类文章标签复制本文标题复制本文地址
随便逛逛

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

评论
avatar
竹山一叶
技术分享 个人心得
Follow Me
公告
欢迎光临小站,这里是我日常工作和学习中收集和整理的总结,希望能对你有所帮助:)

本站的内容经过个人加工总结而来,也参考了网友们分享的资料,如有侵权,请第一时间联系我,我将及时进行修改或删除😊

欢迎关注我的微信公众号