Skip to content

Commit

Permalink
fix: prevent merging the default option of rsbuild-plugin-html-minifi…
Browse files Browse the repository at this point in the history
…er-terser
  • Loading branch information
fi3ework committed Aug 7, 2024
1 parent 2bee70c commit 373d803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/builder-rsbuild/src/preview/iframe-rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,14 @@ export default async (
},
plugins: [
shouldCheckTs ? pluginTypeCheck(tsCheckOptions) : null,
pluginHtmlMinifierTerser({
pluginHtmlMinifierTerser(() => ({
collapseWhitespace: true,
removeComments: true,
removeRedundantAttributes: true,
removeScriptTypeAttributes: false,
removeStyleLinkTypeAttributes: true,
useShortDoctype: true,
}),
})),
].filter(Boolean),
tools: {
rspack: (config, { addRules, appendPlugins, rspack, mergeConfig }) => {
Expand Down

0 comments on commit 373d803

Please sign in to comment.