Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"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?



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: