Skip to content

Commit

Permalink
use ??
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jan 8, 2025
1 parent 561c9fb commit 0929aac
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,20 @@ export function singleFileCompression(opt?: Options): PluginOption {
opt.htmlMinifierTerser == null || opt.htmlMinifierTerser === true
? defaultHtmlMinifierTerserOptions
: opt.htmlMinifierTerser,

tryInlineHtmlAssets:
opt.tryInlineHtmlAssets == null
? true
: opt.tryInlineHtmlAssets,
opt.tryInlineHtmlAssets ?? true,

removeInlinedAssetFiles:
opt.removeInlinedAssetFiles == null
? true
: opt.removeInlinedAssetFiles,
opt.removeInlinedAssetFiles ?? true,

tryInlineHtmlPublicIcon:
opt.tryInlineHtmlPublicIcon == null
? true
: opt.tryInlineHtmlPublicIcon,
opt.tryInlineHtmlPublicIcon ?? true,

removeInlinedPublicIconFiles:
opt.removeInlinedPublicIconFiles == null
? true
: opt.removeInlinedPublicIconFiles,
opt.removeInlinedPublicIconFiles ?? true,

useBase128:
opt.useBase128 == null
? true
: opt.useBase128,
opt.useBase128 ?? true,
}

let conf: ResolvedConfig
Expand Down

0 comments on commit 0929aac

Please sign in to comment.