@@ -13,7 +13,7 @@ const browserify = require('browserify');
1313const babelify = require ( 'babelify' ) ;
1414const source = require ( 'vinyl-source-stream' ) ;
1515const buffer = require ( 'vinyl-buffer' ) ;
16- const util = require ( 'gulp-util ' ) ;
16+ const log = require ( 'fancy-log ' ) ;
1717const inlinesource = require ( 'gulp-inline-source' ) ;
1818const bundleconfig = require ( './bundleconfig.json' ) ;
1919const zendeskconfig = require ( './zendeskconfig.json' ) ;
@@ -92,7 +92,7 @@ const compileJs = () => {
9292 return b . bundle ( )
9393 . pipe ( source ( bundle . outputFileName ) )
9494 . pipe ( buffer ( ) )
95- . on ( 'error' , util . log )
95+ . on ( 'error' , error => { log . error ( error . message ) ; } )
9696 . pipe ( dest ( '.' ) ) ;
9797 } ) ;
9898
@@ -113,6 +113,7 @@ const purgeCss = () => {
113113 return src ( `${ paths . assets } css/chocolatey.bundle.css` )
114114 . pipe ( purgecss ( {
115115 content : [
116+ `${ paths . node_modules } scss/_zendesk-guide.scss` ,
116117 `${ paths . templates } *.hbs` ,
117118 `${ paths . globalpartials } *.hbs` ,
118119 `${ paths . assets } js/*.*` ,
@@ -137,7 +138,10 @@ const purgeCss = () => {
137138 'text-bg-warning' ,
138139 'text-bg-danger' ,
139140 'text-bg-success' ,
140- 'text-bg-info'
141+ 'text-bg-info' ,
142+ 'chocolatey-zendesk' ,
143+ 'article-body' ,
144+ 'pre'
141145 ] ,
142146 keyframes : true ,
143147 variables : true
@@ -200,7 +204,7 @@ const delEnd = () => {
200204 . pipe ( clean ( { force : true } ) ) ;
201205} ;
202206
203- // Independednt tasks
207+ // Independent tasks
204208exports . del = del ;
205209
206210// Gulp series
0 commit comments