Closed homerjam closed 4 years ago
How about only if isDev
is true?
How about only if
isDev
is true?
That might be a considerable change, yeah 👍🏻
Do you prefer:
// Line 28
whitelist: ['body', 'html', 'nuxt-progress', 'nuxt__build_indicator', '__nuxt', '__layout']
.filter(selector => this.options.dev || selector !== 'nuxt__build_indicator'),
or
// Line 44
if (this.options.dev) {
defaults.whitelist.push('nuxt__build_indicator')
}
Do you prefer:
// Line 28 whitelist: ['body', 'html', 'nuxt-progress', 'nuxt__build_indicator', '__nuxt', '__layout'] .filter(selector => this.options.dev || selector !== 'nuxt__build_indicator'),
or
// Line 44 if (this.options.dev) { defaults.whitelist.push('nuxt__build_indicator') }
sorry for the late answer! The latter is preferred.
Please apply your changes to the most recent version and resolve merge conflicts ☺️
I made #85 instead - seems better due to the refactor
As purgecss should usually not run in dev mode, the build indicator shouldn't be part of the whitelist IMO.