ionic-team / ionic-team/ionic-cli

font paths in production are wrong

Open
#3,097 4 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
2k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

i run `npm run ionic:build -- --prod`, then copy `www` on a dockerfile, which just servers it.

When I try to access my app, I get a `404` for `../build/assets/fonts/ionicons.woff2?v=3.0.0-alpha.3`. Looking at the `www` folder, this is obvious. The fonts are in `../assets/fonts`, not `../build/assets/..`.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `npm run ionic:build -- --prod`, then inspect the generated `www` folder and the font references in its built assets. Trace why the production output points to `../build/assets/fonts/ionicons.woff2` instead of the available `../assets/fonts` path; done when the copied production app loads the Ionicons font without a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.