You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.5 KiB

= Bundling a .zip version of TinyMCE with ES6 and Rollup.js
:navtitle: ES6 and a .zip archive
:description_short: Bundling a .zip archive version of TinyMCE in a project using ES6 and Rollup.js
:description: Bundling a .zip archive version of TinyMCE in a project using ES6 and Rollup.js
:keywords: rollupjs, es6, es2015, zip, modules, tinymce
:installtype: pass:n[a `+.zip+`]
:bundler: https://www.rollupjs.org/[Rollup.js]
:syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules[ES6+ syntax]
include::partial$module-loading/bundling-procedure-intro.adoc[]
== Requirements
This guide requires the following:
* Node.js and npm
* Basic knowledge of how to use https://www.rollupjs.org/[Rollup.js]
== Procedure
:is_zip_install: true
include::partial$install/download-tinymce.adoc[]
include::partial$module-loading/webpack-dev-dependencies.adoc[]
include::partial$module-loading/bundling-rollup-es6-zip_editor.adoc[]
include::partial$module-loading/bundling-rollup-es6-zip_rollup.config.adoc[]
include::partial$module-loading/bundling-rollup-es6-index.adoc[]
. Run Rollup.js to test the bundle, such as:
+
[source,sh]
----
rollup --config
----
+
If Rollup.js runs successfully, check that the editor loads in the application. If Rollup.js fails, review any errors and review the configuration changes in this procedure; you may need to adjust for conflicts or other issues when bundling {productname} into an existing project.
:!is_zip_install:
include::partial$module-loading/bundling-next-steps.adoc[]