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) => {