Skip to content

Conversation

@GRAMMAC1
Copy link
Contributor

Summary

add replace solution for less alias import

Signed-off-by: GRAMMAC <GRAMMAC@163.com>
Copilot AI review requested due to automatic review settings June 23, 2025 09:59
@netlify
Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 7710796
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/685925739489f90008c96ab1
😎 Deploy Preview https://deploy-preview-5474--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 75 (🔴 down 5 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a 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 documentation on handling less alias imports by introducing a new replace configuration option.

  • Updated Chinese and English documentation to recommend using the new replace method
  • Added the replace property (with the alias mapping) in both docs to support the new approach

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 Updated comment and added the replace property for less alias import
website/docs/en/plugins/list/plugin-svelte.mdx Updated comment and added the replace property for less alias import
Comments suppressed due to low confidence (1)

website/docs/en/plugins/list/plugin-svelte.mdx:135

  • For clarity and consistency with the Chinese documentation, consider explicitly mentioning the 'replace' property in the comment.
          // recommend simple alias handling for Less files

@GRAMMAC1
Copy link
Contributor Author

刚才合并的太快了,把 replace 的方式加上,我去 svelte 社区看看有没有什么官方解决方案😊

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice bro ❤️

@chenjiahan chenjiahan merged commit a1f3cfd into web-infra-dev:main Jun 23, 2025
12 checks passed
@GRAMMAC1 GRAMMAC1 deleted the docs/svelte-less-alias branch June 25, 2025 06:26
@chenjiahan chenjiahan mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants