@lingxiteam/bundle-less-theme-tools
v0.0.1-alpha.19
Published
A tool for bundling less theme files.
Downloads
33
Maintainers
Keywords
Readme
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);