Skip to content

Choosing Options

cvasseng edited this page Oct 10, 2016 · 3 revisions

Custom Builds

Custom distributions can be made in cases where only some options should be exposed to the customizer. Exposing options this way may decrease the size of the distribution bundle.

To do this, modify dictionaries/allowed_options.json, and run gulp in the project root.

To bake a custom version that only includes the options required, modify dictionaries/allowed_options.json and then run node tools/update.meta.

After running the tool, run gulp in the project root to bake your custom build. Take a look at dictionaries/exposed.settings.json to see how to format the input JSON file.

Runtime Whitelisting

Editable options can also be defined at runtime, by passing an array of allowed properties into the availableSettings option in the constructor of both highed.Editor and highed.SimpleEditor. Note that this works as a whitelist. By default all the options available will be exposed.