This is useful for more complex advancement setups
#Strategy 2: Simply serve made data files with esbuild
With this specific means, you simply tell esbuild in order to serve brand new contents of the new outdir rather than offering it any extra content in order to suffice. Such as, you may want to have fun with NGINX as the a reverse proxy so you're able to station some other routes in order to ent (e.g. /static/ so you're able to NGINX, /api/ so you can node, /js/ so you can esbuild, etc.). Having fun with esbuild using this type of means ends up this:
The brand new API contact these analogy do serve the fresh new accumulated contents of src/software.js at only just as in the initial strategy, all of the HTTP consult may cause esbuild so you can rebuild your password and you will serve you the type therefore aside.js will always be cutting edge. (more…)
