You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About PR #58 @, I would like to use Esbuild for all our static assets instead of using a different solution for images.
I tried what is in the README, but it also generates .js/.css files in the output directory.
Hi @g13ydson, your esbuild command looks correct. Esbuild won't output files that aren't imported and used in the JS, so maybe that's the cause of this issue?
You could try adding this to your javascript/application.js:
import Logo from './images/logo.png'
...
console.log(Logo)
Then when esbuild runs, the file should be copied and you'll see a line of output like this:
About PR #58 @, I would like to use Esbuild for all our static assets instead of using a different solution for images.
I tried what is in the README, but it also generates .js/.css files in the output directory.
our script:
package.json
javascript/application.js
There is an image in: javascript/images/logo.png
Is there a step I'm missing so that the image is copied to the output directory?
The text was updated successfully, but these errors were encountered: