mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
18 lines
399 B
JavaScript
18 lines
399 B
JavaScript
import Uppy from '@uppy/core'
|
|
import Dashboard from '@uppy/dashboard'
|
|
import Compressor from '@uppy/compressor'
|
|
|
|
import '@uppy/core/dist/style.css'
|
|
import '@uppy/dashboard/dist/style.css'
|
|
|
|
const uppy = new Uppy()
|
|
.use(Dashboard, {
|
|
target: document.body,
|
|
inline: true,
|
|
})
|
|
.use(Compressor, {
|
|
mimeType: 'image/webp',
|
|
})
|
|
|
|
// Keep this here to access uppy in tests
|
|
window.uppy = uppy
|