documentationfor yFiles for HTML 2.6

yWorks Optimizer

The yWorks Optimizer can be easily integrated into the deployment of your yFiles for HTML application for obfuscation and optimization of the yFiles library modules. This tool will obfuscate the public yFiles API and adapt the usages in your application code accordingly.

We highly recommend using the yWorks Optimizer as part of your production build in addition to a generic minifier/obfuscator. The yWorks Optimizer is precisely tailored to the structure of the yFiles library modules and therefore achieves an obfuscation and size reduction of the yFiles library. However, it does not generally minify/obfuscate your application.

At the time of writing, you are not required to obfuscate the yFiles library, though.

The Optimizer is available as an npm package and can be installed like any npm module:

npm install @yworks/optimizer

It can be used as a plugin in a webpack or Rollup bundled application by importing the respective plugin for webpack @yworks/optimizer/webpack-plugin or Rollup @yworks/optimizer/rollup-plugin.

You can find usage examples for popular frameworks like e.g. Vue.js, React, Angular, in the corresponding toolkit (see demos-{js|ts}/toolkit/) or loading (demos-{js|ts}/loading/) demo.

A detailed documentation of its features and CLI can be found here.