You need to create a custom bundle to only include the plugins you need. If youāre not using a bundler for the rest of your application, you can create one just for Uppy.
npm install -g browserify
- Install the Uppy modules that you will use
npm install @uppy/core @uppy/tus @uppy/dashboard
- Create a file that only includes the plugins you need
// custom-uppy.js
window.Uppy = {}
Uppy.Core = require('@uppy/core')
Uppy.Tus = require('@uppy/tus')
Uppy.Dashboard = require('@uppy/dashboard')
- Create a bundle using browserify
browserify custom-uppy.js -o my-uppy-bundle.js
Now, you can use my-uppy-bundle.js in a script tag or use gulp-concat to add it to the start of your scripts. It will define a global Uppy variable just like the build that comes with the uppy package, but with only the things you need.
You can just copy the my-uppy-bundle.js file into your project, so you donāt need to use browserify or another bundler for your other files.
I donāt think weāll provide more minimal bundles ourselves, because there are so many possible combinations. Weād have to build 100+ bundles to serve every use case probably š
Hope that helps!