From 68d57aff34f3d32e6cdb7b798375e06728de2e8a Mon Sep 17 00:00:00 2001 From: sea <45450994+warmthsea@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:32:34 +0800 Subject: [PATCH] docs: add sass compatible version description (#18428) * chore: fix docs/play dev sass deprecation warning * chore: update * chore: update * docs: add sass compatible version description --------- Co-authored-by: btea <2356281422@qq.com> --- docs/en-US/guide/installation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/en-US/guide/installation.md b/docs/en-US/guide/installation.md index f5714cef88..f0b53f7b51 100644 --- a/docs/en-US/guide/installation.md +++ b/docs/en-US/guide/installation.md @@ -18,6 +18,20 @@ Since Vue 3 no longer supports IE11, Element Plus does not support IE either. | < 2.5.0 | Chrome ≥ 64 | Edge ≥ 79 | Firefox ≥ 78 | Safari ≥ 12 | | 2.5.0 + | Chrome ≥ 85 | Edge ≥ 85 | Firefox ≥ 79 | Safari ≥ 14.1 | +### Sass + +Version `2.8.5` and later, the minimum compatible version of [Sass](https://github.com/sass) is `1.79.0`. + +If your terminal prompts `legacy JS API Deprecation Warning`, you can configure the following code in [vite.config.ts](https://vitejs.dev/config/shared-options.html#css-preprocessoroptions). + +```ts{3} +css: { + preprocessorOptions: { + scss: { api: 'modern-compiler' }, + } +} +``` + ### Version Element Plus is currently in a rapid development iteration.