dart-lang / dart-lang/webdev

How to include images from another package into build folder?

Open
#1,075 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
224
Forks
94
Avg merge
4d 3h
Merged PRs (30d)
2

Description

have a project with multiples clients and I want to add a logo image for each one.
So a create a project `client_common` and added a `logo.png` image inside of a lib folder.
But this file is not included when I build to use.

How to pack this file at `webdev build` and use on my html?

OBS: The image file is in another package defined in `pubspec.yml`.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how assets in a dependency's pubspec.yml are handled by the webdev build entry point. Determine whether the supported behavior should be documented or changed, then verify the result by building the HTML and checking that the client logo from the other package is available in the build folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
build-system, cli
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.