Skip to content

Build silently ignores required images #452

@Tanneguy

Description

@Tanneguy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions