refactor(cssFilter): remove exclude variable

This commit is contained in:
curben 2019-08-26 13:49:03 +09:30
parent 03e82cfb2c
commit 8292e31140
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 3 deletions

View File

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