You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying an extractor specific for one file type, but no extractor for the other file types in the project, I get an exception "Cannot read property 'extractor' of undefined"
To Reproduce
use html and js as content
add an extractor for html, but not js
run purgecss
see error
Expected behavior
I want the default extract to be used for any file type that I don't specify. Apparently this happened to other people previously as well: #95
Desktop (please complete the following information):
OS: Windows (but shouldn't be related)
Version of Purgecss: 1.1.0
Additional context
Suggested fix: in getFileExtractor() the DefaultExtractor should be returned when extractorObj is undefined
* like ".w-1/6" which is ignored and purged by default
* currently we have to define all filetypes used in our project due to
missing DefaultExtractor fallback by purgecss
(FullHuman/purgecss#148)
Describe the current behavior
When specifying an extractor specific for one file type, but no extractor for the other file types in the project, I get an exception "Cannot read property 'extractor' of undefined"
To Reproduce
Expected behavior
I want the default extract to be used for any file type that I don't specify. Apparently this happened to other people previously as well: #95
Desktop (please complete the following information):
Additional context
Suggested fix: in getFileExtractor() the DefaultExtractor should be returned when extractorObj is undefined
purgecss/src/index.js
Lines 230 to 237 in 9b637bd
The text was updated successfully, but these errors were encountered: