remoteinterview / zero

Zero is a web server to simplify web development.

Home Page:https://zeroserver.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't load plain javascript without processing

mcoquet opened this issue · comments

I have a very simple example of trying to serve an html file that looks like :

<html lang="en">
<body>
<script type="module" src="/meow.mjs"> </script>
 Hellow world
</body>
</html>

and meow.mjs reads

alert("boom")

Zero - as expected tries to bundle the js. Is there anyway we can avoid that behavior and , for some files or directories, just serve statically?

We don't yet have a way to ignore bundler for some paths. Is there a use case for this? ie. when bundling breaks something?

The above code is bundled and served correctly.

I don't believe its breaking. My use case is simply having a plain web page with some javascript that I would like to be served statically. Thanks!