Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Use Object#assign() for merging objects
Browse files Browse the repository at this point in the history
  • Loading branch information
hail2u committed Jan 28, 2017
1 parent cde970c commit 6e1f791
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,10 @@ module.exports = postcss.plugin(pkg.name, function (opts) {
opts = {};
}

if (!opts.preserveHacks) {
opts.preserveHacks = false;
}

if (!opts.removeAllComments) {
opts.removeAllComments = false;
}
opts = Object.assign({
preserveHacks: false,
removeAllComments: false
}, opts);

return function (css) {
css.raws.semicolon = false;
Expand Down

0 comments on commit 6e1f791

Please sign in to comment.