umd as a library target

This commit is contained in:
Taly 2018-07-11 20:53:41 +03:00
parent a5c682a7cc
commit 1bbb1368ec
No known key found for this signature in database
GPG key ID: F8569511A387BDFB
6 changed files with 1833 additions and 1826 deletions

View file

@ -1,5 +1,14 @@
var CodexEditor =
/******/ (function(modules) { // webpackBootstrap
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["CodexEditor"] = factory();
else
root["CodexEditor"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
@ -4405,7 +4414,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
* @typedef {Listeners} Listeners
* @property {Array} allListeners
*/
var Listeners = function (_Module) {
_inherits(Listeners, _Module);
@ -4970,7 +4978,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
* @property {Element} html - Editor HTML content
* @property {String} json - Editor JSON output
*/
var Saver = function (_Module) {
_inherits(Saver, _Module);
@ -7852,4 +7859,5 @@ exports.push([module.i, ":root {\n /**\n * Toolbar buttons\n */\n --bg-lig
/***/ })
/******/ });
});
//# sourceMappingURL=codex-editor.js.map

File diff suppressed because one or more lines are too long

3636
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,6 @@
* @typedef {Listeners} Listeners
* @property {Array} allListeners
*/
export default class Listeners extends Module {
/**
* @constructor

View file

@ -20,7 +20,6 @@
* @property {Element} html - Editor HTML content
* @property {String} json - Editor JSON output
*/
export default class Saver extends Module {
/**
* @constructor

View file

@ -80,7 +80,8 @@ module.exports = {
output: {
path: path.resolve(__dirname, 'build'),
filename: '[name].js',
library: [ 'CodexEditor' ]
library: [ 'CodexEditor' ],
libraryTarget: 'umd'
},
watch: true,