Use Visual Studio to Modify Attached files

There may be a way to do this already and I just don’t know how. I have a lot of websites that use JS files that I modify in VS Code and attach to a page(s). It would be nice if I could modify those files and every time I run/build a website it grabs the latest file instead of the previous versions of one I have attached directly to the page.

As of typing this I had a thought. Maybe If i didn’t embed assets in the project this would work?

Welcome @Zeke ,

https://help.blocsapp.com/knowledge-base/linked-assets-dont-refresh/

It should. :crossed_fingers:

that works without any problems. I have a workspace in VSCode for each project with all the folders it needs.

The necessary folders are then added to the project settings (as Attachements) in the Bloc project, and each export takes them along with the current status. It may make sense to define a special folder for the bloc project in the workspace. Usually not everything has to be included in the export.

In the code editor you can then define what should be included where (header, footer, before doctype, after HTML).

From your experience, does that remain true when using external storage devices also. https://help.blocsapp.com/knowledge-base/assets-stored-on-external-drive-are-missing/

I’m not sure if we’re all talking about the same thing, but maybe I’m wrong.

  • Assets of a project
    or
  • Attachments of a project

Assets of a project are images/media or similar. In the Asset Manager I can only select such files (png,jpg etc). There is the issue of external media. In the Asset Manager i cannot add JS-Files

Attachments can be whole folders including Javascript, PHP files or whatever. I think the original post was along these lines. He wants add JS Files.

I haven’t had attachments on external media yet.
Usually a development environment or VSCode or another editor is involved.

Thanks, yes I understood what was being spoken about.

Just wondered, given the first link posted above speaks of CSS and JS as assets. So was just curious if linked page attachments suffer the same fate as other linked assets across drives, etc., which has been widely discussed across the forum.

Perhaps it’s not an issue for linked CSS / JS, was just curious.