mirror of https://gitlab.com/curben/blog
refactor(cssFilter): remove exclude variable
This commit is contained in:
parent
03e82cfb2c
commit
8292e31140
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue