Re:Modern SPAs without bundlers, CDNs, or Node.js
by mrpepka on Friday February 17, 2023 @09:24PM
(#34843200)
"I typically start <...> using a file:// URL."
"Ideally, Iād just grab the framework files, import them from my JavaScript, and then carry on with my file:// URL."
Does this work with file:// URLs at all?
I see in the article that paths in import maps start with /. So, the author must be using a local server, otherwise browsers will block loading the modules by CORS policy. Is there something I'm not getting here?
"Ideally, Iād just grab the framework files, import them from my JavaScript, and then carry on with my file:// URL."
Does this work with file:// URLs at all?
I see in the article that paths in import maps start with /. So, the author must be using a local server, otherwise browsers will block loading the modules by CORS policy. Is there something I'm not getting here?