Socket
Socket
Sign inDemoInstall

@lingxiteam/bundle-less-theme-tools

Package Overview
Dependencies
0
Maintainers
11
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lingxiteam/bundle-less-theme-tools

A tool for bundling less theme files.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
11
Created
Weekly downloads
 

Readme

Source

bundle-less-theme-tools

A tool for bundling less theme files.

Install

$ npm install -D @lingxiteam/bundle-less-theme-tools

or


$ yarn add -D @lingxiteam/bundle-less-theme-tools

Export

  • bundleLessTheme:read and resolve import path in less theme file, and output all
  • miniLessTheme
  • replaceLessTheme

Usage

let themeBundle = '';
let themeFileEntryPath = 'xxx/xxx/xxx.less';

themeBundle = bundleLessTheme(themeFileEntryPath);

themeBundle = replaceLessTheme(themeBundle, {
   'body {': '.unuse-body {'
});

themeBundle = miniLessTheme(themeBundle);

FAQs

Last updated on 05 Nov 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc