Include additional static assets with source

We are developing a Grafana “app” plugin. We wish to include a JSON configuration file along with the plugin, which we can then request from within our app.
The intention is that we can tweak settings in our config file as necessary after build & deploy. Is this possible?

I have discovered how this can be achieved! Simply add any files under src/static, and they will be copied into the built package.

I found the implementation for this here:

Edit: It is probably worth noting the lines above. A JSON file within the src directory will get copied anyway. …I was trying to achieve this with a folder in the root.

1 Like