Skip to content

Commit

Permalink
fix: fixes libraryName
Browse files Browse the repository at this point in the history
  • Loading branch information
davidroyer committed May 24, 2019
1 parent 76d8777 commit 8cfb6fd
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 25 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
8 changes: 0 additions & 8 deletions dist/demo.html

This file was deleted.

6 changes: 2 additions & 4 deletions dist/vue2-editor.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
console.log('FROM common.js');

module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -14297,7 +14295,7 @@ module.exports = __webpack_require__(63);

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70c967fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueEditor.vue?vue&type=template&id=464d8f32&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1f72939f-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueEditor.vue?vue&type=template&id=464d8f32&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"quillWrapper"},[_vm._t("toolbar"),_c('div',{ref:"quillContainer",attrs:{"id":_vm.id}}),(_vm.useCustomImageHandler)?_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"id":"file-upload","type":"file","accept":"image/*"},on:{"change":function($event){return _vm.emitImageInfo($event)}}}):_vm._e()],2)}
var staticRenderFns = []

Expand Down Expand Up @@ -18124,5 +18122,5 @@ module.exports = listCacheHas;

/***/ })

/******/ });
/******/ })["default"];
//# sourceMappingURL=vue2-editor.common.js.map
2 changes: 1 addition & 1 deletion dist/vue2-editor.common.js.map

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions dist/vue2-editor.umd.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
console.log('FROM umd.js');

(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["vue2-editor"] = factory();
exports["Vue2Editor"] = factory();
else
root["vue2-editor"] = factory();
root["Vue2Editor"] = factory();
})((typeof self !== 'undefined' ? self : this), function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -14306,7 +14304,7 @@ module.exports = __webpack_require__(63);

"use strict";

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"70c967fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueEditor.vue?vue&type=template&id=464d8f32&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1f72939f-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VueEditor.vue?vue&type=template&id=464d8f32&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"quillWrapper"},[_vm._t("toolbar"),_c('div',{ref:"quillContainer",attrs:{"id":_vm.id}}),(_vm.useCustomImageHandler)?_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"id":"file-upload","type":"file","accept":"image/*"},on:{"change":function($event){return _vm.emitImageInfo($event)}}}):_vm._e()],2)}
var staticRenderFns = []

Expand Down Expand Up @@ -18133,6 +18131,6 @@ module.exports = listCacheHas;

/***/ })

/******/ });
/******/ })["default"];
});
//# sourceMappingURL=vue2-editor.umd.js.map
2 changes: 1 addition & 1 deletion dist/vue2-editor.umd.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions dist/vue2-editor.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue2-editor.umd.min.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"dev": "vue-cli-service serve ./demos",
"release": "standard-version && git push --follow-tags && npm publish",
"release:alpha": "standard-version --prerelease alpha && git push --follow-tags origin dev && npm publish --tag alpha",
"vbuild:lib": "vue-cli-service build --target lib --name vue2-editor ./src/lib.js"
"vbuild:config": "vue-cli-service build --target lib ./src/lib.js",
"vbuild": "vue-cli-service build --target lib --name Vue2Editor --filename vue2-editor --no-genHTML ./src/lib.js",
"postvbuild": "rm dist/demo.html",
"postvbuild:config": "rm dist/demo.html"
},
"main": "dist/vue2-editor.common.js",
"unpkg": "dist/vue2-editor.umd.min.js",
Expand Down
16 changes: 16 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
module.exports = {
css: {
extract: false
},
configureWebpack: {
// entry: "./src/lib.js",
output: {
libraryExport: "default",
filename: "vue2-editor",
// libraryTarget: "window",
library: "Vue2Editor"
}
},
chainWebpack: config => {
config.plugins.delete("html");
// config.plugins.delete('preload')
// config.plugins.delete('prefetch')
}
};

// genHTML: false,

0 comments on commit 8cfb6fd

Please sign in to comment.