I have a script call in Body End that points to a js file in Resources and I noticed that any changes in that file are not being automatically picked up when previewing.
The only workaround right now is to remove the file and then put the file back, which is quite tedious.
I’m updating in a text editor and saving changes. Would be nice if nothing was cached and would instantly pick up any changes made to the file (at least when previewing).
No I’m not messing with the Elements bundle, I have a js file in resources and I’m editing it like a normal person by selecting it in the finder and editing it - lol
I think I’m overthinking it LOL. Do you edit an external copy of the file in a text editor, then remove the existing script from resources in the Elements app, and drag the new edited version in?
Any files added to the Resources area are stored in the Project and do not reference your original files on disk, so you can’t just edit them in the Finder.
Yeah, using the new Code page as @dan suggested is the way I’d go for this. You could create a scripts folder at the root of the site and add a code page in there for your script.
I’m not sure if code page will work, but it crashed when I tried to setup one - just sent in a crash report. Is that code page easily extractable when I move to dev packs?
Thanks @tpbradley Adding a file in pages panel now works. You didn’t have to do this on the weekend, but it is appreciated.
Quick question, if I wanted to use that file temporarily , is there a path variable to a page file like this to use in the ‘Edit Extra Code’ locations ?