Skip to content

Fix configFile path in sass-customization guide#338

Closed
Timbuktu1982 wants to merge 1 commit into
vuetifyjs:mainfrom
Timbuktu1982:patch-1
Closed

Fix configFile path in sass-customization guide#338
Timbuktu1982 wants to merge 1 commit into
vuetifyjs:mainfrom
Timbuktu1982:patch-1

Conversation

@Timbuktu1982

Copy link
Copy Markdown

It does not work with the prefix @ or ~ used today. If you omit the prefix, it works without errors.

Description

Linked Issues

Additional Context


Tip

The author of this PR can publish a preview release by commenting /publish below.

It does not work with the prefix @ or ~ used today. If you omit the prefix, it works without errors.
@AndreyYolkin AndreyYolkin added documentation Improvements or additions to documentation area: styles Styles, SCSS, FOUC, style config needs rebase Has merge conflicts; needs rebase on base branch labels Jun 6, 2026
@AndreyYolkin

Copy link
Copy Markdown
Contributor

Thanks for spotting this, and apologies for the slow turnaround! Closing because the change isn't quite right and the target has moved:

  1. The docs were reorganizedsass-customization.md is now guide/styling/sass.md, which no longer contains the configFile: '@/assets/css/components.scss' line this patch edits.
  2. A leading / would actually break resolution. The module resolves styles.configFile like this: a non-absolute path is resolved against each layer's srcDir, otherwise it's passed to Nuxt's resolvePath. A leading-slash path is absolute (filesystem root), so it wouldn't resolve to your project. The original @/assets/... works (Nuxt resolves the @ alias), and the canonical form in the current docs is simply srcDir-relative — configFile: 'assets/settings.scss' (see guide/styling/common-setup.md and guide/styling/caching.md).

We're also fixing a leftover leading-slash example in the SSR guide separately. Thanks again for the report! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: styles Styles, SCSS, FOUC, style config documentation Improvements or additions to documentation needs rebase Has merge conflicts; needs rebase on base branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants