unclecheese

Is asset-manifest.json something you'd want to deploy to production, though?

alt

does anyone set up silverstripe to automatically scan create-react-apps asset-manifest.json in order to load the JS chunks?

Mo

@blueo Cool, I didn't see that PR. I will see if I can integrate it with what I am doing and Frankenstein something together!

👹 (1) 👍 (1)
blueo

not sure what state it is in so milage may vary

Mo

Yea, I have been trying to reverse engineer UploadField as part of what I am doing. UploadField doesn't seem to convert the schema data of children though (which I think is what I am looking for)

blueo

see vendor/silverstripe/asset-admin/client/src/entwine/UploadField/UploadFieldEntwine.js There is an associated template vendor/silverstripe/asset-admin/templates/SilverStripe/AssetAdmin/Forms/UploadField.ss that adds the schema data in the $AttributesHTML property.