-
-
Notifications
You must be signed in to change notification settings - Fork 249
docs(svelte): add less alias import solution #5471
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
docs(svelte): add less alias import solution #5471
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Svelte plugin documentation by adding a solution for handling alias imports for LESS/SCSS files, addressing issue #5372.
- Added a new section on alias handling for both Chinese and English documentation.
- Provided an example configuration snippet for alias resolution using pluginSvelte.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/plugins/list/plugin-svelte.mdx | Added Chinese documentation for alias handling in LESS/SCSS with example configuration |
| website/docs/en/plugins/list/plugin-svelte.mdx | Added English documentation for alias handling in LESS/SCSS with example configuration |
Comments suppressed due to low confidence (1)
website/docs/zh/plugins/list/plugin-svelte.mdx:144
- The documentation refers to 'preprocessor', but the code snippet uses 'preprocessOptions'. Please update the Chinese docs for consistency with the actual configuration option.
通过配置 `preprocessor` 可以保证在 Svelte 组件中引入的 `@import '@/styles/variables.scss` 或者 `@import '@/styles/variables.less'` 能够正确解析。
chenjiahan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this PR first 😄

Summary
add less alias import solution to fix #5372