Browse Source

site: exclude palatte color

fix #8161
pull/8244/head
Wei Zhu 7 years ago
parent
commit
c37b1e8425
  1. 4
      scripts/generateColorLess.js

4
scripts/generateColorLess.js

@ -21,6 +21,10 @@ const COLOR_MAP = {
const reducePlugin = postcss.plugin('reducePlugin', () => { const reducePlugin = postcss.plugin('reducePlugin', () => {
const cleanRule = (rule) => { const cleanRule = (rule) => {
if (rule.selector.startsWith('.main-color .palatte-')) {
rule.remove();
return;
}
let removeRule = true; let removeRule = true;
rule.walkDecls((decl) => { rule.walkDecls((decl) => {
if ( if (

Loading…
Cancel
Save