app.js 399 B

123456789101112131415161718
  1. import Uppy from '@uppy/core'
  2. import Dashboard from '@uppy/dashboard'
  3. import Compressor from '@uppy/compressor'
  4. import '@uppy/core/dist/style.css'
  5. import '@uppy/dashboard/dist/style.css'
  6. const uppy = new Uppy()
  7. .use(Dashboard, {
  8. target: document.body,
  9. inline: true,
  10. })
  11. .use(Compressor, {
  12. mimeType: 'image/webp',
  13. })
  14. // Keep this here to access uppy in tests
  15. window.uppy = uppy