Skip to content

Commit 8feca1e

Browse files
committed
prevent overriding default options with the options, instead use empty options to merge both
1 parent 3aec7ac commit 8feca1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Purgecss {
4343
if (typeof options === 'string' || typeof options === 'undefined')
4444
options = this.loadConfigFile(options)
4545
this.checkOptions(options)
46-
this.options = Object.assign(defaultOptions, options)
46+
this.options = Object.assign({}, defaultOptions, options)
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)