halfzebra/create-elm-app

Build silently ignores required images

Tanneguy opened this issue · 1 comments

Is this a bug report?

Yes

Environment

  1. node -v: v13.2.0
  2. npm -v: 6.13.7
  3. yarn --version (if you use Yarn):
  4. npm ls create-elm-app -g (if you haven’t ejected):
    /home/me/.nvm/versions/node/v13.2.0/lib
    └── create-elm-app@4.2.1

Then, specify:

  1. Operating system:
    Description: Ubuntu 19.10
    Codename: eoan

  2. 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

  1. the build/media/static folder contains
  • buggy.[hash].png
  • nobug.[hash].png
  1. If an import did not succeed - because of the file itself, for instance,
    an error message explains what happened

Actual Behavior

  1. Only one png was imported, the other one seemed simply ignored
  2. 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.