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.
53 lines
934 B
53 lines
934 B
= Bundling {productname} icon packs using module loading
|
|
:navtitle: Icons
|
|
:description_short: Information on bundling icon packs
|
|
:description: Information on bundling TinyMCE icon packs using module loading
|
|
|
|
:editorcomponent: icon pack
|
|
include::partial$module-loading/bundling-ref-example.adoc[]
|
|
:!editorcomponent:
|
|
|
|
The following table shows examples of the syntax used to bundle the following icon pack:
|
|
|
|
....
|
|
./icons/example/icons.js
|
|
....
|
|
|
|
Example syntax for including the example icon pack in a bundle:
|
|
|
|
[cols='1,1,4']
|
|
|===
|
|
|Module Syntax |Source |Example
|
|
|
|
.2+|ES6+
|
|
|npm
|
|
a|
|
|
[source, js]
|
|
----
|
|
import 'tinymce/icons/example';
|
|
----
|
|
|
|
|`.zip`
|
|
a|
|
|
[source, js]
|
|
----
|
|
import '../tinymce/icons/example/icons';
|
|
----
|
|
|
|
.2+|Common JS
|
|
|npm
|
|
a|
|
|
[source, js]
|
|
----
|
|
require('tinymce/icons/example');
|
|
----
|
|
|
|
|`.zip`
|
|
a|
|
|
[source, js]
|
|
----
|
|
require('../tinymce/icons/example/icons.js');
|
|
----
|
|
|===
|
|
|
|
include::partial$module-loading/bundling-icon-files.adoc[]
|