We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. I want to set javascriptEnabled and modifyVars for less.
javascriptEnabled
modifyVars
Describe the solution you'd like I need a way to pass on my options.
From the screenshot below I can see that this is not possible at present.
Describe alternatives you've considered
May be we need to put some fields in vite.confg.js, like ——
module.exports = { plugins: ['react'], // ... cssPreprocessorOptions: { less: { javascriptEnabled: true, modifyVars: { ... } }, // .... } }
For now I'm just HACKing in vite.config.js ——
// HACK Object.assign(require('less').options, { javascriptEnabled: true, modifyVars: { ... } });
Additional context None.
The text was updated successfully, but these errors were encountered:
feat: support preprocessing style options (vitejs#332)
c4f56d3
eb14b1c
dd6028a
13d4fc2
What you expected now works. I'm using ant-design and am overriding the defaults.
less: { modifyVars: { white: '#333', 'component-background': '#777', 'primary-color': '#1DA57A', 'link-color': '#1DA57A', 'border-radius-base': '2px', }, javascriptEnabled: true, }, },
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
I want to set
javascriptEnabled
andmodifyVars
for less.Describe the solution you'd like
I need a way to pass on my options.
From the screenshot below I can see that this is not possible at present.
Describe alternatives you've considered
May be we need to put some fields in vite.confg.js, like ——
For now I'm just HACKing in vite.config.js ——
Additional context
None.
The text was updated successfully, but these errors were encountered: