2015-01-14 51 views
0

忽略選項似乎不適用於我。Gulp-uncss忽略選項

我做了以下內容:

.pipe(plugins.uncss({ 
     html: glob.sync('./**/*.{csh,h}tml'), 
     ignore: ['.active'] 
    }) 

誰能幫助?

+0

什麼是您所遇到_precisely_問題? –

+0

忽略數組中的類不會被uncss忽略。他們也被刪除。 – JimmyBob

+1

你有沒有嘗試過使用像'/ active /' –

回答

4

嘗試使用正則表達式的形式爲您ignore選項:

.pipe(plugins.uncss({ 
    html: glob.sync('./**/*.{csh,h}tml'), 
    ignore: ['/active/'] 
})