aurelia / aurelia/cli

Including images from the 'static' dir to a CLI generated Webpack project results in duplication in output bundle

Open
#968 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
402
Forks
134
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a bug report**
Here is another issue with the CLI generated webpack config that soon becomes apparent once an app starts to be built.

* **Loader/bundler:**
Webpack

**Current behavior:**
If you go down the logical steps needed to include an image in your app, ie. add an image inside 'static/images' dir then add the image to your html file like this:
```

Contributor guide

Open the contributing guide

Research direction

Start in the CLI-generated webpack configuration at the CopyWebpackPlugin entry shown in the issue, then build a project containing an image under static/images and inspect dist. The work is done when referenced images are emitted once while the unreferenced favicon remains available in the output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.