How to override assets with plugins?


(Mahdi Hosseini) #1

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 ?


(Sam Saffron) #2

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 ?


(Robin Ward) #3

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


(Robin Ward) #4