Changed libraryTarget to "umd" + rebuild 🚀

This commit is contained in:
euvl
2017-06-22 15:54:52 +01:00
parent 787de3b205
commit f371235d03
4 changed files with 29 additions and 9 deletions

View File

@@ -9,8 +9,8 @@ module.exports = {
output: { output: {
path: path.resolve(__dirname, '../dist'), path: path.resolve(__dirname, '../dist'),
publicPath: '/dist/', publicPath: '/dist/',
library:'VueJsModal', library:'vue-js-modal',
libraryTarget: 'commonjs2' libraryTarget: 'umd'
}, },
module: { module: {
rules: [ rules: [

16
dist/index.js vendored
View File

@@ -1,5 +1,14 @@
module.exports = (function webpackUniversalModuleDefinition(root, factory) {
/******/ (function(modules) { // webpackBootstrap if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"));
else if(typeof define === 'function' && define.amd)
define(["vue"], factory);
else if(typeof exports === 'object')
exports["vue-js-modal"] = factory(require("vue"));
else
root["vue-js-modal"] = factory(root["vue"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_16__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
/******/ /******/
@@ -1167,8 +1176,9 @@ module.exports = function listToStyles (parentId, list) {
/* 16 */ /* 16 */
/***/ (function(module, exports) { /***/ (function(module, exports) {
module.exports = require("vue"); module.exports = __WEBPACK_EXTERNAL_MODULE_16__;
/***/ }) /***/ })
/******/ ]); /******/ ]);
});
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map

16
dist/ssr.index.js vendored
View File

@@ -1,5 +1,14 @@
module.exports = (function webpackUniversalModuleDefinition(root, factory) {
/******/ (function(modules) { // webpackBootstrap if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"));
else if(typeof define === 'function' && define.amd)
define(["vue"], factory);
else if(typeof exports === 'object')
exports["vue-js-modal"] = factory(require("vue"));
else
root["vue-js-modal"] = factory(root["vue"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_16__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
/******/ /******/
@@ -967,8 +976,9 @@ module.exports = function listToStyles (parentId, list) {
/* 16 */ /* 16 */
/***/ (function(module, exports) { /***/ (function(module, exports) {
module.exports = require("vue"); module.exports = __WEBPACK_EXTERNAL_MODULE_16__;
/***/ }) /***/ })
/******/ ]); /******/ ]);
});
//# sourceMappingURL=ssr.index.js.map //# sourceMappingURL=ssr.index.js.map

View File

@@ -1,7 +1,7 @@
{ {
"name": "vue-js-modal", "name": "vue-js-modal",
"description": "Modal Component for Vue.js", "description": "Modal Component for Vue.js",
"version": "1.2.1", "version": "1.2.2",
"author": "euvl <yev.vlasenko@gmail.com>", "author": "euvl <yev.vlasenko@gmail.com>",
"main": "dist/index.js", "main": "dist/index.js",
"repository": { "repository": {