mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 00:23:43 +08:00
35f6441938
This PR adds uppy to the project with a custom JS build and the shims needed to import it into our JS code. We need a custom build of Uppy because we do not use webpack for our JS modules/build. The only way to get what you want from Uppy is to use the webpack modules or to include the entire Uppy project including all plugins in a single JS file. This way we can just use the plugins we actually want. Future PRs will actually use Uppy!
12 lines
532 B
JavaScript
12 lines
532 B
JavaScript
// We need a custom build of Uppy because we do not use webpack for
|
|
// our JS modules/build. The only way to get what you want from Uppy
|
|
// is to use the webpack modules or to include the entire Uppy project
|
|
// including all plugins in a single JS file. This way we can just
|
|
// use the plugins we actually want.
|
|
window.Uppy = {}
|
|
Uppy.Core = require('@uppy/core')
|
|
Uppy.Plugin = Uppy.Core.Plugin
|
|
Uppy.XHRUpload = require('@uppy/xhr-upload')
|
|
Uppy.AwsS3 = require('@uppy/aws-s3')
|
|
Uppy.AwsS3Multipart = require('@uppy/aws-s3-multipart')
|