-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All requests resolve to index.html #7
Comments
As far as I can tell, any file in the root of your "dist" folder will be treated as a route, and not work as expected. (at least for JS files) |
Setting very specific esbuild.config.js: esBuildDevServer.start(
build({
entryPoints: ["src/index.ts", "dist/index.html"],
outdir: "dist/final",
incremental: true,
loader: {
".html": "text",
".ts": "ts",
},
bundle: true,
}),
{
port: "8080",
watchDir: "src",
index: "dist/index.html",
staticDir: "dist",
}
) index.html has this scripts apart from ../node_modules/...: <script type="text/javascript" src="/final/dist/index.js"></script>
<script type="text/javascript" src="/final/src/index.js"></script> |
I've got this plugin set up and running a dev server, however all network requests resolve to the
index.html
file. This includes requests for myindex.js
file, which of course fails.Would you be able to help me figure this out? I can provide more info if you tell me what you need.
The text was updated successfully, but these errors were encountered: