Open splashsky opened 2 weeks ago
You should be able to do that with a plugin: https://esbuild.github.io/plugins/#on-resolve
Is there no way to do this binary-only? My project is non-traditional and so I'm avoiding the use of any node_modules or packages; in fact, the only JavaScript are downloaded, minified scripts not delivered by CDN or managed by a package manager.
No, sorry. Plugins are the intended way to alter path resolution in esbuild if you have custom requirements like this.
My stylesheets have plenty of references to images through relative paths (
url()
), and when I try to bundle my CSS (which I would assume just imports all the CSS into one build) esbuild fails saying it can't resolve theurl()
calls. Can I have the bundler ignore these and let me determine where the files are?