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

你好作者,scss不支持最新的api: "modern-compiler"选项 #13

Closed
newives opened this issue Oct 7, 2024 · 0 comments
Closed

Comments

@newives
Copy link

newives commented Oct 7, 2024

图片

如上图,设置modern-compiler后,varsContent选项失效了

  css: {
    preprocessorOptions: {
      scss: {
        api: "modern-compiler",
      },
    },
  },

目前最新的element-plus推荐用 modern-compiler 配置 vite也即将用 modern-compiler 作为默认配置,希望作者兼容下❤️

初步排查是设置modern-compiler后,函数走到 https://github.com/GitOfZGT/some-loader-utils/blob/master/src/getSass.js#L36 就不继续走了

@newives newives closed this as completed Nov 1, 2024
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