Skip to content

Commit 5089983

Browse files
committed
Uglify version for production in browsers
Added a post script hook to generate a minify version for browsers. Added `unpkg` field in `package.json` for free CDN at <https://unpkg.com/>. Added file `package-lock.json` as instructed by npm. Instructions for use in a browser.
1 parent f35c41c commit 5089983

File tree

5 files changed

+4642
-6
lines changed

5 files changed

+4642
-6
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
npm-debug.log
22
node_modules/
33
.DS_Store
4-
package-lock.json

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ Installation:
1414
npm install vue-filepond --save
1515
```
1616

17+
For browser:
18+
19+
```html
20+
<script src="https://unpkg.com/vue-filepond"></script>
21+
```
22+
1723
Usage:
1824

1925
```vue
2026
<template>
2127
<div id="app">
22-
28+
2329
<FilePond
2430
name="test"
2531
ref="pond"
@@ -29,7 +35,7 @@ Usage:
2935
server="/api"
3036
v-bind:files="myFiles"
3137
v-on:init="handleFilePondInit"/>
32-
38+
3339
</div>
3440
</template>
3541
@@ -52,7 +58,7 @@ export default {
5258
methods: {
5359
handleFilePondInit: function() {
5460
console.log('FilePond has initialized');
55-
61+
5662
// FilePond instance methods are available on `this.$refs.pond`
5763
}
5864
},

dist/vue-filepond.min.js

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)