|
@@ -35,7 +35,9 @@ Check out [uppy.io](http://uppy.io/) for docs, API, examples and stats.
|
|
### Installing from NPM
|
|
### Installing from NPM
|
|
|
|
|
|
It’s easy to start using Uppy, we recommend installing from npm:
|
|
It’s easy to start using Uppy, we recommend installing from npm:
|
|
-`npm install uppy --save`
|
|
|
|
|
|
+```
|
|
|
|
+npm install uppy --save
|
|
|
|
+```
|
|
|
|
|
|
and then use a bundler like Browserify or Webpack:
|
|
and then use a bundler like Browserify or Webpack:
|
|
|
|
|
|
@@ -48,9 +50,13 @@ const files = uppy
|
|
.use(DragDrop, {target: 'body'})
|
|
.use(DragDrop, {target: 'body'})
|
|
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
|
|
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
|
|
.run()
|
|
.run()
|
|
|
|
+```
|
|
|
|
|
|
|
|
+or
|
|
|
|
+
|
|
|
|
+``` javascript
|
|
// ES5
|
|
// ES5
|
|
-// :warning: bundling with `require` will include the whole Uppy package, with all plugins.
|
|
|
|
|
|
+// warning: bundling with `require` will currently include the whole Uppy package, with all plugins.
|
|
// If you want to pick and choose, use `import`)
|
|
// If you want to pick and choose, use `import`)
|
|
var Uppy = require('uppy')
|
|
var Uppy = require('uppy')
|
|
|
|
|