Commit Graph

6 Commits

Author SHA1 Message Date
euvl
7dacd010ec Updated webpack conf which decreased the size of dist by mre than 30% 2017-10-25 15:31:53 +01:00
arve0
e3179625d0 Remove Vue runtime dependency
This allow the bundle to be used in jsfiddle, plnkr, jsbin, etc.,
as the bundle does not depend on Vue.

The problem lies on second line of bundle

```js
"object" == typeof exports ? exports["vue-js-modal"] = factory(require("vue")) : root["vue-js-modal"] = factory(root.vue)
```

where `factory` tries to find `root.vue`, but the official Vue bundle exports
as `root.Vue`.

Removing the runtime dependency solves this.

`Object.assign` is available in all browsers but IE:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2017-09-13 20:30:01 +02:00
euvl
48721f956d Added uglification stap to remove dead code (fix by @arve0) 2017-09-13 13:41:30 +01:00
euvl
f371235d03 Changed libraryTarget to "umd" + rebuild 🚀 2017-06-22 15:54:52 +01:00
euvl
b652b4342c Fixed issues with file names 2017-06-20 09:00:17 +01:00
euvl
dcf3291623 Added putputs for client and server 2017-06-20 03:39:15 +01:00