Image not builded when run snowpack build with bundle=true #3714
Unanswered
neviaumi
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
Turn out i feel like because of code here, it would recognise image as external dependence |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i am beginner of
snowpack
and i want migrate my project from CRA to snowpackSo here is my snowpack config
It working with
snowpack dev
It working with
snowpack build
withbundle=false
It not working with
snowpack build
withbundle=true
if i run
snowpack build
withbundle=true
and open the result html.It would complain
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
And i find in complier source code it contain
![Screen Shot 2021-09-14 at 11 08 55 PM](https://user-images.githubusercontent.com/2247500/133285800-d46eeb72-9b0f-4e4f-9d14-74e2e5c4701f.png)
As document said here, it should supported out of box?
I also attempt include below code according to esbuild document, but no luck.
Anyone can advise ?
Beta Was this translation helpful? Give feedback.
All reactions