Skip to content

Commit

Permalink
site: exclude palatte color
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Nov 20, 2017
1 parent 9fb590f commit c37b1e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generateColorLess.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const COLOR_MAP = {

const reducePlugin = postcss.plugin('reducePlugin', () => {
const cleanRule = (rule) => {
if (rule.selector.startsWith('.main-color .palatte-')) {
rule.remove();
return;
}
let removeRule = true;
rule.walkDecls((decl) => {
if (
Expand Down

0 comments on commit c37b1e8

Please sign in to comment.