Skip to content

Commit

Permalink
purge css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Dec 5, 2020
1 parent 069c0ef commit f8eaddf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,13 @@ gulp.task('build-critical', (cb) => {
critical({
base: 'demo/',
inline: true,
height: 1200,
css: 'demo/dist/{libs,css}/**/*.css'
css: ['demo/dist/css/tabler.css'],
ignore: {
atrule: ['@font-face', '@import'],
decl: (node, value) => {
/url\(/.test(value)
},
},
})
)
.on('error', err => {
Expand Down

0 comments on commit f8eaddf

Please sign in to comment.