I was wondering whether it's possible to use a service worker in the ReactJS Kibana plugin?
The following command is failing navigator.serviceWorker.register("serviceWorker.js")
and I'm assuming the reason is because that file doesn't exist at the root of my application (e.g. http://localhost:5601/hzn/app/serviceWorker.js)
So the question is, where is the root of my application in my folder? Because it doesn't appear to be the public folder.
Hmm, I don't believe you'll be able to accomplish this in the current system, because there's currently no way to specify which JavaScript files you want to serve statically outside of what gets built using our build system. You may want to open a GitHub issue requesting the ability to do this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.