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

vite 中使用mapToken不生效 #6796

Closed
1 task
userchun opened this issue Jul 28, 2023 · 1 comment
Closed
1 task

vite 中使用mapToken不生效 #6796

userchun opened this issue Jul 28, 2023 · 1 comment

Comments

@userchun
Copy link

userchun commented Jul 28, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.0-rc.6

Environment

vite 4.4 antd-vue4.0

Reproduction lin

Steps to reproduce

What is expected?

What is actually happening?

import { theme } from 'ant-design-vue';

const { defaultAlgorithm, defaultSeed } = theme;
const mapToken=defaultAlgorithm(defaultSeed);

vite.config.ts
css: {
preprocessorOptions: {
less: {
modifyVars: {
...mapToken,
colorPrimary:red,
},
javascriptEnabled: true,
},
},
},
不生效

@geng130127
Copy link

解决这个问题了吗

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

2 participants