Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Minor syntax update #92

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/neutrino-preset-web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = ({ config }) => {
collapseWhitespace: true,
preserveLineBreaks: true,
}
}, PKG.config && PKG.config.html ? PKG.config.html : {}));
}, PKG.config && (PKG.config.html || {})));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be either:

(PKG.config && PKG.config.html) || {}

or

PKG.config && PKG.config.html || {}


if (process.env.NODE_ENV !== 'test') {
config
Expand Down