From 8292e311409135e7e7958ffcff3198091b09db4d Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Mon, 26 Aug 2019 13:49:03 +0930 Subject: [PATCH] refactor(cssFilter): remove exclude variable --- scripts/cssFilter.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/cssFilter.js b/scripts/cssFilter.js index 49f1a53..114d57f 100644 --- a/scripts/cssFilter.js +++ b/scripts/cssFilter.js @@ -15,10 +15,8 @@ const normalize = require('postcss-normalize') const postcss = require('postcss') hexo.extend.renderer.register('css', 'css', (data, options) => { - const exclude = '*.min.css' - if (data.path) { - if (micromatch.isMatch(data.path, exclude, { basename: true })) return data.text + if (micromatch.isMatch(data.path, '*.min.css', { basename: true })) return data.text } return new Promise((resolve, reject) => {