documentationfor yFiles for HTML 3.0.0.1

Redistributables

Redistributables in Evaluation Packages

The evaluation version of yFiles for HTML does not include any redistributable files. It is intended for evaluation purposes only. You are not permitted to distribute any files from the evaluation version of yFiles for HTML as part of your software or in any other way.

Redistributables in Purchased Packages

In purchased packages of yFiles for HTML, the files in the lib directory are the Redistributables as defined in Section 2 of the license terms.

Deployment of a Development Mode Library

The development mode library is not redistributable as-is. To deploy your project for production, you can either

  • replace the development mode library with the redistributable library, or
  • convert the development mode library into the redistributable library with a build tool like Vite that removes the development information.

Most popular JavaScript build tools will strip the development information automatically when running a production build. Therefore, the production build results of these tools will be properly prepared for production environments without additional effort.

Technical Details

The development mode library can be switched into production mode by setting the value of process.env.NODE_ENV to production. When a build tool is used that supports replacing tokens statically at build time as well as dead code elimination/tree shaking, the yFiles debugging information will be stripped from the development library. A yFiles for HTML library processed this way can be released to your production environment.

For testing the yFiles library in production mode without running a production build, you can also enable it manually by including the following snippet in your HTML file before loading yFiles:

<script>
  window.process = { env: { NODE_ENV: 'production' } }
</script>