From f8eaddf4799015a8303239e7ad34efbe52404006 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 5 Dec 2020 23:58:33 +0100 Subject: [PATCH] purge css fix --- gulpfile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6cbda4e32..b8329a37d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 => {