Solved app.js changes not updating
-
Hello all,
I'm trying to make a custom dashboard but I'm having issues changing the menu. I've been able to update the html files, but when I make changes in app.js, the menu doesn't update. Anyone run into this issue or am I missing a step?
Thanks
-
It sounds like you are running into a browser caching issue. I find that whether I am working locally or on a live mango server I have to explicitly have the browser not cache files when I am previewing changes.
If you are using google chrome you can have you developer tools open and check the box that says 'Disable Cache' under the network tab. Now when you refresh the page with the dev tools open it will load a fresh copy of all source files.
If you are using Safari I find that you can do a cmd+opt+e to clear cache before hitting cmd+r to reload the page and it will do the same.
-
I think I've found the issue, in the adminTemplate example, in index.html, there is a line:
<script>require(['dashboards/adminTemplate/app']);</script>
So it's not loading the new app.js.
I've followed the example given and put a renamed copy of the adminTemplate in the overrides folder. What would be the new file path then in overrides? I've tried different extensions I think it should be but it says it can't find that file. -
That was the issue and I have found the right path now.