New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

antd-less-to-css-variable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-less-to-css-variable

antd vue的less变量转成css variable

1.0.5
latest
npm
Version published
Weekly downloads
133
-8.28%
Maintainers
1
Weekly downloads
 
Created
Source

less-plugin-antd-to-css-variable

转换ant design的less变量为原生css变量,方便实现主题切换以及暗黑模式

灵感来源

transform-antd-theme-variable

用法

npm install antd-less-to-css-variable

webpack 配置

```less
const LessPluginAntd2CssVariable = require('antd-less-to-css-variable').default
css: {
    loaderOptions: {
      // 给 less-loader 传递 Less.js 相关选项
      less: {
        plugins: [
          new LessPluginAntd2CssVariable(),
        ],
      }
    }
  }

FAQs

Package last updated on 11 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts