Problem/Motivation

When running the npm build process, a css file gets built, that embeds the fira-sans fonts from kern_ux from the docroot instead of the directory they are residing. This leads to the fonts not being loaded.

Steps to reproduce

  1. Install kern_ux into any drupal
  2. $ cd web/themes/contrib/kern_ux
  3. $ npm i && npm run build
  4. $ drush cr

When accessing the frontpage now > in the browser's developer tools > under "networking" > you should see that the fonts are marked red - because they cannot be loaded.

Proposed resolution

Add a base path to the vite config, so the paths get resolved correctly (relatively instead of absolute)

Remaining tasks

Review

User interface changes

Working Fonts :-D

Issue fork kern_ux-3563618

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fisherman90 created an issue. See original summary.

fisherman90’s picture

Issue summary: View changes
fisherman90’s picture

Assigned: fisherman90 » Unassigned
Status: Active » Needs review

MR added, feedback welcome :)

christian.wiedemann’s picture

Status: Needs review » Fixed

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.