Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong resolve path in stylesheet example: theme-launch #437

Open
GerbenPeeters opened this issue Oct 6, 2022 · 0 comments
Open

Wrong resolve path in stylesheet example: theme-launch #437

GerbenPeeters opened this issue Oct 6, 2022 · 0 comments

Comments

@GerbenPeeters
Copy link

Regarding the theme "launch" layoutData.js configuration

The following path is wrong (L19):

 head__42: html` <link rel="stylesheet" href="resolve:root/src/assets/styles.css" /> `,

It should be:

 head__42: html` <link rel="stylesheet" href="resolve:#src/assets/styles.css" /> `,

Given that (i) the package.json includes:

  "imports": {
    "#src/*": "./site/src/*"
  }

and that (ii) you have a styles.css in the /site/src/assets/ folder.


As a suggestion, it could be convenient to add a styles.css document on the said location by default (e.g. a copy from variables.css), such that you can immediately start playing around with your css variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant