Redistributables in Evaluation Packages
The evaluation version of yFiles for HTML does not contain any Redistributables. It is for evaluation purposes only. You are not entitled to distribute any of the files included in the evaluation version of yFiles for HTML as part of your software or otherwise.
Redistributables in Purchased Packages
In purchased packages of yFiles for HTML, the files in the lib
directory are the
Redistributables as mentioned in Section 2 in the license terms.
Deployment of a Development Mode Library
The development mode library, typically located in the lib-dev
directory, is not redistributable as-is. To deploy your project for production, you can either
- replace the development mode library with the redistributable library from the
lib
directory of the yFiles for HTML package, or - convert the development mode library into the redistributable library with a build tool like webpack that removes the development information.
With webpack, just set the "mode" configuration option to "production". Popular JavaScript toolkits like Angular CLI, Vue CLI and Create React App use webpack under the hood. Therefore, the production build results of one of these frameworks 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 tree shaking as
well as replacing node environment variable references
at compile time, 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 of course also enable it manually by including this simple snippet in your HTML file before loading yFiles: