How to override assets with plugins?

I want to override one of the assets

app/assets/javascripts/discourse/components/date-picker.js.es6

and load this file instead

plugins/custom-plugin/assets/javascripts/date-picker.js.es6

is this possible ?

Overriding a file in the bundle is not something we support, if you must you would have to load it up in the plugin and somehow replace the internal object model.

Why are you trying to replace the global date picker ?

1 Like

I already told you privately that this is not possible. Again we cannot help you with a fork of Discourse.