create-elm-app
create-elm-app copied to clipboard
Build silently ignores required images
Is this a bug report?
Yes
Environment
node -v: v13.2.0npm -v: 6.13.7yarn --version(if you use Yarn):npm ls create-elm-app -g(if you havenβt ejected): /home/me/.nvm/versions/node/v13.2.0/lib βββ [email protected]
Then, specify:
-
Operating system: Description: Ubuntu 19.10 Codename: eoan
-
Browser and version (if relevant): not relevant (build issue)
Steps to Reproduce
git clone https://github.com/Tanneguy/bug1.git
cd bug1
elm-app build
Expected Behavior
My aim is to use images in my app.
I followed the (especially well-hidden) directive of using the 'required:' prefix in the src attibute value for the img tag. I then foremost expected the images to appear in the app.
As it turned out, not all media are imported during the build. I expected
- the build/media/static folder contains
- buggy.[hash].png
- nobug.[hash].png
- If an import did not succeed - because of the file itself, for instance, an error message explains what happened
Actual Behavior
- Only one png was imported, the other one seemed simply ignored
- Compiled successfully message
Reproducible Demo
as explained in the Steps to Reproduce
Hi @Tanneguy!
Thanks for reporting this π
It looks like there might be an issue with the loader we use to provide this feature. I'll have a look and let you know if there's a solution.