Frontmatter
| assignees | anasdahani220 |
| createdAt | Nov 10, 2026, 2:40 AM |
| updatedAt | Nov 10, 2026, 9:49 PM |
| githubUrl | https://github.com/neomjs/neo/issues/20687 |
| author | neo-opus-vega |
| commentsCount | 3 |
| parentIssue | 20667 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 1 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 10, 2026, 9:49 PM |
Each dist build copies 5,839 Font Awesome files; the runtime loads 5

I'll take this. I already have one merged PR in neo (#20386); if good first issues are reserved for first-time contributors, let me know and I'll leave it. Plan: one shared copy list (css/all.min.css, webfonts/, LICENSE.txt) used by both webpack configs, plus a unit spec that parses the installed all.min.css url(...) references and fails if one is not in the list.
@github-actions - 2026-11-10T14:12:46Z
Thanks for claiming this, @anasdahani220, and welcome! You're first in line, so you can start now.
A maintainer confirms the assignment when one is online, and that can take a while. You don't need to wait for it.
An automatic reply. A maintainer follows up. How claims work [QUARANTINED_URL: github.com]
@neo-gemini-maryam - 2026-11-10T15:34:10Z
Welcome back, @anasdahani220! Since we have nine other open good first issue tickets in the queue for first-time contributors, you are very welcome to take #20687 — I have confirmed your claim and assigned the issue to you.
Your plan (one shared copy list for css/all.min.css, webfonts/, and LICENSE.txt consumed by both the development and production main-thread webpack configs, plus a unit spec verifying that every url(...) in the installed css/all.min.css is covered by that shared list) matches the ticket's Acceptance Criteria. When you open the PR against dev, remember to include a standalone Resolves #20687 line and the dist/production icon rendering verification from AC-5 (screenshot or computed font-family of a .fa-solid element).
— Maryam 🧭
- 2026-11-10T15:34:35Z @neo-gemini-maryam assigned to @anasdahani220
7aae5ec - "build: copy only the Font Awesome files the runtime loads (#20687)" on Nov 10, 2026, 7:55 PM
2653cfd - "build: copy only the Font Awesome files the runtime loads (#20687)" on Nov 10, 2026, 8:21 PM
Context
The development and production webpack builds of the main thread end by copying the whole
@fortawesome/fontawesome-freenpm package into the dist folder:buildScripts/webpack/development/webpack.config.main.mjs:19-20,61buildScripts/webpack/production/webpack.config.main.mjs:18-19,68Both run
copyFolder -s node_modules/@fortawesome/fontawesome-free -t <dist>/resources/fontawesome-free.#3082introduced the copy in 2022.Measured on
devat5343d947d2, with@fortawesome/fontawesome-free7.3.1:css/all.min.csswebfonts/(four.woff2)LICENSE.txtOn disk the copy takes 42,328 KB in
dist/development/resources/fontawesome-freeand the same again indist/production/resources/fontawesome-free(du -sk). Most of it issvgs-full/(11.7 MB),svgs/(11.6 MB),metadata/(7.4 MB),js/(6.7 MB), the two sprite folders (3.7 MB) andscss/(0.3 MB).The Problem
The runtime loads one file from the copy:
resources/fontawesome-free/css/all.min.css(src/main/addon/Stylesheet.mjs:55). That stylesheet references four files, all in../webfonts/. No other line insrc/,apps/,examples/,docs/app,learn/,resources/,buildScripts/ortest/names the copied folder, apart from the two config lines that write it.So five files are used and 5,834 are not: SVG sources, sprites, icon metadata, a JavaScript build and SCSS sources. Every dist folder carries them, in this repository and in every workspace that builds with the engine's configs. A workspace that deploys its dist folder uploads them. A workspace whose deploy check forbids source files in the output cannot use the engine's copy step at all and has to replace it.
The Architectural Reality
buildScripts/util/copyFolder.mjsisfs.copySync(source, target)behind two flags,-sand-t. It has no include or exclude option.WebpackHookPlugin'sonBuildEndlist, and each holds its own copy of thefaFrom/faTopaths.src/main/addon/Stylesheet.mjs:53-55: dev mode anddist/esmread the stylesheet fromnode_modules/; only the two webpack dist environments read it fromresources/fontawesome-free/.The Fix
Copy what the runtime loads, and nothing else:
css/all.min.css, thewebfonts/folder andLICENSE.txt.The shape is the implementer's choice: narrower copy commands, or an include option on
copyFolder.mjs. Either way both configs take the list from one place, so the development and production builds cannot drift apart.Acceptance Criteria
npm run build-all,dist/development/resources/fontawesome-freeanddist/production/resources/fontawesome-freeeach hold exactlycss/all.min.css,webfonts/andLICENSE.txt.url(...)in the copiedall.min.cssresolves to a file inside the copied tree.css/all.min.css, extracts itsurl(...)references and fails when one of them is not covered by the copy list. A Font Awesome upgrade that adds a font file then fails a spec instead of shipping broken icons.dist/production(for exampledist/production/apps/portal/index.htmlbehindnpm run server-start): a screenshot, or the computedfont-familyof one.fa-solidelement.Out of Scope
dist/esm, which read the package fromnode_modules/and copy nothing.neomjs/create-app.Avoided Traps
Related
Related: #20667 (the parent: a build path that a workspace can use as it is) · #3082 (introduced the copy)
Live latest-open + closed sweep: checked all 14 open issues plus searches over every state (fontawesome; dist production size copyFolder) at 2026-11-10T01:38Z.
#3082is the origin and has an empty body;#17918(closed 2026-11-04) fixed the stylesheet's path on absolute mounts and its Out of Scope does not cover what is copied. No equivalent found. Backlog: 14 open, green band. A2A in-flight claim sweep: latest 30 messages at 01:20Z plus the 12 newest at 01:39Z, all read-states; no competing claim. MC sweep:query_raw_memorieson the symptom (dist build copies the whole fontawesome-free folder; only all.min.css and webfonts load), 6 results; no prior decision on the copy found. Own-assignment sweep: 3 open (#20667,#20677,#20685);#20667is the parent, the others do not overlap.unowned-rationale: Ready for a contributor; maintainers provide planning and review. The filer reviews the pull request it draws.
Origin Session ID: 7adc40d6-3339-45fd-bc2c-8451bf2da347
Retrieval Hint: "fontawesome-free copied whole into dist", "copyFolder include list", "dist build output size"