From fe36e631baacdad58e7504458033f09de4e74f77 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Fri, 13 Sep 2024 16:03:11 +0800 Subject: [PATCH] docs: refactor builder config doc (#6182) Co-authored-by: keepview <35088742+keepview@users.noreply.github.com> --- .changeset/fast-cups-film.md | 7 + package.json | 4 +- packages/cli/uni-builder/src/types.ts | 3 +- packages/document/builder-doc/.npmignore | 29 - packages/document/builder-doc/CHANGELOG.md | 522 ------------------ packages/document/builder-doc/LICENSE | 21 - packages/document/builder-doc/README.md | 38 -- .../builder-doc/docs/en/api/config-dev.mdx | 59 -- .../docs/en/api/config-experiments.mdx | 26 - .../builder-doc/docs/en/api/config-html.mdx | 125 ----- .../builder-doc/docs/en/api/config-output.mdx | 191 ------- .../docs/en/api/config-performance.mdx | 83 --- .../docs/en/api/config-security.mdx | 23 - .../builder-doc/docs/en/api/config-source.mdx | 77 --- .../builder-doc/docs/en/api/config-tools.mdx | 131 ----- .../builder-doc/docs/en/api/index.mdx | 5 - .../docs/en/config/dev/assetPrefix.md | 59 -- .../docs/en/config/dev/beforeStartUrl.md | 15 - .../builder-doc/docs/en/config/dev/hmr.md | 14 - .../builder-doc/docs/en/config/dev/host.md | 16 - .../builder-doc/docs/en/config/dev/https.md | 71 --- .../builder-doc/docs/en/config/dev/port.md | 18 - .../docs/en/config/dev/progressBar.md | 33 -- .../docs/en/config/dev/startUrl.md | 46 -- .../en/config/experiments/lazyCompilation.md | 85 --- .../docs/en/config/experiments/sourceBuild.md | 30 - .../docs/en/config/html/appIcon.md | 70 --- .../docs/en/config/html/crossorigin.md | 36 -- .../docs/en/config/html/disableHtmlFolder.md | 35 -- .../docs/en/config/html/favicon.md | 54 -- .../docs/en/config/html/faviconByEntries.md | 30 - .../builder-doc/docs/en/config/html/inject.md | 59 -- .../docs/en/config/html/injectByEntries.md | 30 - .../builder-doc/docs/en/config/html/meta.md | 28 - .../docs/en/config/html/metaByEntries.md | 41 -- .../docs/en/config/html/mountId.md | 47 -- .../docs/en/config/html/scriptLoading.md | 60 -- .../builder-doc/docs/en/config/html/tags.md | 239 -------- .../docs/en/config/html/tagsByEntries.md | 37 -- .../docs/en/config/html/template.md | 18 - .../docs/en/config/html/templateByEntries.md | 26 - .../docs/en/config/html/templateParameters.md | 58 -- .../html/templateParametersByEntries.md | 29 - .../builder-doc/docs/en/config/html/title.md | 14 - .../docs/en/config/html/titleByEntries.md | 30 - .../docs/en/config/output/assetPrefix.md | 42 -- .../docs/en/config/output/assetsRetry.md | 73 --- .../docs/en/config/output/charset.md | 16 - .../docs/en/config/output/cleanDistPath.md | 14 - .../docs/en/config/output/convertToRem.md | 77 --- .../builder-doc/docs/en/config/output/copy.md | 16 - .../config/output/cssModuleLocalIdentName.md | 54 -- .../docs/en/config/output/cssModules.md | 79 --- .../docs/en/config/output/dataUriLimit.md | 49 -- .../en/config/output/disableCssExtract.md | 16 - .../output/disableCssModuleExtension.md | 53 -- .../en/config/output/disableFilenameHash.md | 38 -- .../output/disableInlineRuntimeChunk.md | 40 -- .../docs/en/config/output/disableMinimize.md | 18 - .../docs/en/config/output/disableSourceMap.md | 63 --- .../docs/en/config/output/disableSvgr.md | 14 - .../docs/en/config/output/disableTsChecker.md | 47 -- .../docs/en/config/output/distPath.md | 74 --- .../en/config/output/enableAssetFallback.md | 30 - .../en/config/output/enableAssetManifest.md | 34 -- .../output/enableCssModuleTSDeclaration.md | 26 - .../en/config/output/enableInlineScripts.md | 94 ---- .../en/config/output/enableInlineStyles.md | 95 ---- .../config/output/enableLatestDecorators.md | 20 - .../docs/en/config/output/externals.md | 25 - .../docs/en/config/output/filename.md | 93 ---- .../docs/en/config/output/legalComments.md | 24 - .../en/config/output/overrideBrowserslist.md | 61 -- .../docs/en/config/output/polyfill.md | 28 - .../docs/en/config/output/svgDefaultExport.md | 28 - .../docs/en/config/performance/buildCache.md | 79 --- .../en/config/performance/bundleAnalyze.md | 89 --- .../docs/en/config/performance/chunkSplit.md | 179 ------ .../docs/en/config/performance/dnsPrefetch.md | 19 - .../docs/en/config/performance/preconnect.md | 22 - .../docs/en/config/performance/prefetch.md | 55 -- .../docs/en/config/performance/preload.md | 55 -- .../en/config/performance/printFileSize.md | 26 - .../docs/en/config/performance/profile.md | 16 - .../en/config/performance/removeConsole.md | 34 -- .../config/performance/removeMomentLocale.md | 25 - .../en/config/performance/transformLodash.md | 43 -- .../docs/en/config/security/checkSyntax.md | 138 ----- .../docs/en/config/security/nonce.md | 31 -- .../docs/en/config/security/sri.md | 52 -- .../docs/en/config/source/alias.md | 118 ---- .../docs/en/config/source/aliasStrategy.md | 96 ---- .../docs/en/config/source/define.md | 44 -- .../docs/en/config/source/exclude.md | 16 - .../docs/en/config/source/globalVars.md | 104 ---- .../docs/en/config/source/include.md | 137 ----- .../docs/en/config/source/moduleScopes.md | 63 --- .../docs/en/config/source/preEntry.md | 48 -- .../config/source/resolveExtensionPrefix.md | 49 -- .../en/config/source/resolveMainFields.md | 40 -- .../docs/en/config/source/transformImport.md | 255 --------- .../docs/en/config/tools/autoprefixer.md | 42 -- .../builder-doc/docs/en/config/tools/babel.md | 219 -------- .../docs/en/config/tools/bundlerChain.mdx | 16 - .../docs/en/config/tools/cssExtract.md | 21 - .../docs/en/config/tools/cssLoader.md | 23 - .../docs/en/config/tools/devServer.md | 436 --------------- .../docs/en/config/tools/htmlPlugin.md | 61 -- .../builder-doc/docs/en/config/tools/less.md | 79 --- .../docs/en/config/tools/minifyCss.md | 51 -- .../docs/en/config/tools/postcss.md | 116 ---- .../builder-doc/docs/en/config/tools/pug.md | 48 -- .../docs/en/config/tools/rspack.md | 270 --------- .../builder-doc/docs/en/config/tools/sass.md | 76 --- .../docs/en/config/tools/styleLoader.md | 37 -- .../docs/en/config/tools/styledComponents.md | 50 -- .../docs/en/config/tools/terser.md | 50 -- .../docs/en/config/tools/tsChecker.md | 50 -- .../docs/en/config/tools/tsLoader.md | 64 --- .../docs/en/config/tools/webpack.md | 296 ---------- .../docs/en/config/tools/webpackChain.md | 240 -------- .../document/builder-doc/docs/en/index.md | 27 - .../docs/en/shared/builderRebrandTip.md | 7 - .../docs/en/shared/bundlerChain.md | 3 - .../builder-doc/docs/zh/api/config-dev.mdx | 59 -- .../docs/zh/api/config-experiments.mdx | 25 - .../builder-doc/docs/zh/api/config-html.mdx | 125 ----- .../builder-doc/docs/zh/api/config-output.mdx | 191 ------- .../docs/zh/api/config-performance.mdx | 83 --- .../docs/zh/api/config-security.mdx | 23 - .../builder-doc/docs/zh/api/config-source.mdx | 77 --- .../builder-doc/docs/zh/api/config-tools.mdx | 131 ----- .../builder-doc/docs/zh/api/index.mdx | 5 - .../docs/zh/config/dev/assetPrefix.md | 59 -- .../docs/zh/config/dev/beforeStartUrl.md | 15 - .../builder-doc/docs/zh/config/dev/hmr.md | 14 - .../builder-doc/docs/zh/config/dev/host.md | 16 - .../builder-doc/docs/zh/config/dev/https.md | 72 --- .../builder-doc/docs/zh/config/dev/port.md | 18 - .../docs/zh/config/dev/progressBar.md | 33 -- .../docs/zh/config/dev/startUrl.md | 48 -- .../zh/config/experiments/lazyCompilation.md | 85 --- .../docs/zh/config/experiments/sourceBuild.md | 30 - .../docs/zh/config/html/appIcon.md | 70 --- .../docs/zh/config/html/crossorigin.md | 36 -- .../docs/zh/config/html/disableHtmlFolder.md | 35 -- .../docs/zh/config/html/favicon.md | 54 -- .../docs/zh/config/html/faviconByEntries.md | 30 - .../builder-doc/docs/zh/config/html/inject.md | 59 -- .../docs/zh/config/html/injectByEntries.md | 30 - .../builder-doc/docs/zh/config/html/meta.md | 28 - .../docs/zh/config/html/metaByEntries.md | 41 -- .../docs/zh/config/html/mountId.md | 47 -- .../docs/zh/config/html/scriptLoading.md | 60 -- .../builder-doc/docs/zh/config/html/tags.md | 239 -------- .../docs/zh/config/html/tagsByEntries.md | 37 -- .../docs/zh/config/html/template.md | 18 - .../docs/zh/config/html/templateByEntries.md | 26 - .../docs/zh/config/html/templateParameters.md | 58 -- .../html/templateParametersByEntries.md | 29 - .../builder-doc/docs/zh/config/html/title.md | 14 - .../docs/zh/config/html/titleByEntries.md | 30 - .../docs/zh/config/output/assetPrefix.md | 42 -- .../docs/zh/config/output/assetsRetry.md | 73 --- .../docs/zh/config/output/charset.md | 16 - .../docs/zh/config/output/cleanDistPath.md | 14 - .../docs/zh/config/output/convertToRem.md | 77 --- .../builder-doc/docs/zh/config/output/copy.md | 16 - .../config/output/cssModuleLocalIdentName.md | 54 -- .../docs/zh/config/output/cssModules.md | 79 --- .../docs/zh/config/output/dataUriLimit.md | 49 -- .../zh/config/output/disableCssExtract.md | 16 - .../output/disableCssModuleExtension.md | 53 -- .../zh/config/output/disableFilenameHash.md | 38 -- .../output/disableInlineRuntimeChunk.md | 40 -- .../docs/zh/config/output/disableMinimize.md | 18 - .../docs/zh/config/output/disableSourceMap.md | 63 --- .../docs/zh/config/output/disableSvgr.md | 15 - .../docs/zh/config/output/disableTsChecker.md | 47 -- .../docs/zh/config/output/distPath.md | 74 --- .../zh/config/output/enableAssetFallback.md | 30 - .../zh/config/output/enableAssetManifest.md | 34 -- .../output/enableCssModuleTSDeclaration.md | 26 - .../zh/config/output/enableInlineScripts.md | 94 ---- .../zh/config/output/enableInlineStyles.md | 95 ---- .../config/output/enableLatestDecorators.md | 20 - .../docs/zh/config/output/externals.md | 24 - .../docs/zh/config/output/filename.md | 93 ---- .../docs/zh/config/output/legalComments.md | 24 - .../zh/config/output/overrideBrowserslist.md | 61 -- .../docs/zh/config/output/polyfill.md | 28 - .../docs/zh/config/output/svgDefaultExport.md | 28 - .../docs/zh/config/performance/buildCache.md | 78 --- .../zh/config/performance/bundleAnalyze.md | 89 --- .../docs/zh/config/performance/chunkSplit.md | 174 ------ .../docs/zh/config/performance/dnsPrefetch.md | 19 - .../docs/zh/config/performance/preconnect.md | 22 - .../docs/zh/config/performance/prefetch.md | 57 -- .../docs/zh/config/performance/preload.md | 57 -- .../zh/config/performance/printFileSize.md | 26 - .../docs/zh/config/performance/profile.md | 16 - .../zh/config/performance/removeConsole.md | 34 -- .../config/performance/removeMomentLocale.md | 25 - .../zh/config/performance/transformLodash.md | 43 -- .../docs/zh/config/security/checkSyntax.md | 138 ----- .../docs/zh/config/security/nonce.md | 31 -- .../docs/zh/config/security/sri.md | 52 -- .../docs/zh/config/source/alias.md | 118 ---- .../docs/zh/config/source/aliasStrategy.md | 96 ---- .../docs/zh/config/source/define.md | 44 -- .../docs/zh/config/source/exclude.md | 16 - .../docs/zh/config/source/globalVars.md | 103 ---- .../docs/zh/config/source/include.md | 136 ----- .../docs/zh/config/source/moduleScopes.md | 63 --- .../docs/zh/config/source/preEntry.md | 48 -- .../config/source/resolveExtensionPrefix.md | 51 -- .../zh/config/source/resolveMainFields.md | 40 -- .../docs/zh/config/source/transformImport.md | 256 --------- .../docs/zh/config/tools/autoprefixer.md | 42 -- .../builder-doc/docs/zh/config/tools/babel.md | 218 -------- .../docs/zh/config/tools/bundlerChain.mdx | 19 - .../docs/zh/config/tools/cssExtract.md | 20 - .../docs/zh/config/tools/cssLoader.md | 23 - .../docs/zh/config/tools/devServer.md | 436 --------------- .../docs/zh/config/tools/htmlPlugin.md | 59 -- .../builder-doc/docs/zh/config/tools/less.md | 79 --- .../docs/zh/config/tools/minifyCss.md | 51 -- .../docs/zh/config/tools/postcss.md | 116 ---- .../builder-doc/docs/zh/config/tools/pug.md | 48 -- .../docs/zh/config/tools/rspack.md | 270 --------- .../builder-doc/docs/zh/config/tools/sass.md | 74 --- .../docs/zh/config/tools/styleLoader.md | 35 -- .../docs/zh/config/tools/styledComponents.md | 48 -- .../docs/zh/config/tools/terser.md | 50 -- .../docs/zh/config/tools/tsChecker.md | 50 -- .../docs/zh/config/tools/tsLoader.md | 64 --- .../docs/zh/config/tools/webpack.md | 296 ---------- .../docs/zh/config/tools/webpackChain.md | 244 -------- .../document/builder-doc/docs/zh/index.md | 27 - .../builder-doc/docs/zh/shared/builder.md | 3 - .../docs/zh/shared/builderRebrandTip.md | 7 - .../docs/zh/shared/bundlerChain.md | 3 - packages/document/builder-doc/package.json | 37 -- .../document/builder-doc/rspress.config.ts | 125 ----- .../src/components/NextSteps.module.scss | 6 - .../builder-doc/src/components/NextSteps.tsx | 7 - .../src/components/Step.module.scss | 30 - .../builder-doc/src/components/Step.tsx | 13 - packages/document/builder-doc/src/global.d.ts | 4 - packages/document/builder-doc/src/utils.ts | 6 - .../theme/components/Announcement/index.tsx | 32 -- packages/document/builder-doc/theme/index.tsx | 20 - packages/document/builder-doc/tsconfig.json | 7 - .../docs/en/community/contributing-guide.mdx | 1 - .../docs/en/components/builder.mdx} | 0 .../docs/en/components/bundler.mdx} | 0 .../docs/en/components/enableSwc.mdx} | 0 .../docs/en/components/esbuild.mdx} | 2 +- .../docs/en/components/micro-frontend.mdx} | 0 .../docs/en/components/module-federation.mdx} | 0 .../docs/en/components/nodeVersion.mdx} | 0 .../components/output-asset-prefix-extend.mdx | 0 .../en/components/output-polyfill-extend.mdx | 1 + .../docs/en/components/prerequisites.mdx | 2 +- .../en/components/rsbuild-config-tooltip.mdx | 5 + .../docs/en/components/rsbuild.mdx} | 0 .../docs/en/components/rspack.mdx} | 0 .../docs/en/components/rspackPrecautions.mdx} | 0 .../docs/en/components}/rspackTip.mdx | 2 +- .../docs/en/components/swc.mdx} | 0 .../en/configure/app/dev/asset-prefix.mdx | 14 +- .../en/configure/app/dev/before-start-url.mdx | 16 +- .../docs/en/configure/app/dev/client.mdx | 36 +- .../docs/en/configure/app/dev/hmr.mdx | 10 +- .../docs/en/configure/app/dev/host.mdx | 17 +- .../docs/en/configure/app/dev/https.mdx | 73 ++- .../docs/en/configure/app/dev/live-reload.mdx | 18 +- .../docs/en/configure/app/dev/port.mdx | 20 +- .../en/configure/app/dev/progress-bar.mdx | 19 +- .../configure/app/dev/setup-middlewares.mdx | 64 +-- .../docs/en/configure/app/dev/start-url.mdx | 48 +- .../docs/en/configure/app/dev/watch-files.mdx | 44 +- .../en/configure/app/dev/write-to-disk.mdx | 31 +- .../app/experiments/lazy-compilation.mdx | 86 ++- .../app/experiments/source-build.mdx | 31 +- .../docs/en/configure/app/html/app-icon.mdx | 50 +- .../en/configure/app/html/crossorigin.mdx | 10 +- .../app/html/disable-html-folder.mdx | 37 +- .../configure/app/html/favicon-by-entries.mdx | 31 +- .../docs/en/configure/app/html/favicon.mdx | 16 +- .../configure/app/html/inject-by-entries.mdx | 31 +- .../docs/en/configure/app/html/inject.mdx | 10 +- .../en/configure/app/html/meta-by-entries.mdx | 43 +- .../docs/en/configure/app/html/meta.mdx | 24 +- .../docs/en/configure/app/html/mount-id.mdx | 10 +- .../en/configure/app/html/script-loading.mdx | 10 +- .../en/configure/app/html/tags-by-entries.mdx | 39 +- .../docs/en/configure/app/html/tags.mdx | 15 +- .../app/html/template-by-entries.mdx | 28 +- .../html/template-parameters-by-entries.mdx | 30 +- .../app/html/template-parameters.mdx | 33 +- .../docs/en/configure/app/html/template.mdx | 10 +- .../configure/app/html/title-by-entries.mdx | 32 +- .../docs/en/configure/app/html/title.mdx | 18 +- .../en/configure/app/output/asset-prefix.mdx | 14 +- .../en/configure/app/output/assets-retry.mdx | 74 ++- .../docs/en/configure/app/output/charset.mdx | 10 +- .../configure/app/output/clean-dist-path.mdx | 15 +- .../configure/app/output/convert-to-rem.mdx | 78 ++- .../docs/en/configure/app/output/copy.mdx | 7 +- .../output/css-module-local-ident-name.mdx | 16 +- .../en/configure/app/output/css-modules.mdx | 48 +- .../configure/app/output/data-uri-limit.mdx | 26 +- .../app/output/disable-css-extract.mdx | 11 +- .../output/disable-css-module-extension.mdx | 54 +- .../app/output/disable-filename-hash.mdx | 11 +- .../output/disable-inline-runtime-chunk.mdx | 40 +- .../configure/app/output/disable-minimize.mdx | 9 +- .../app/output/disable-source-map.mdx | 26 +- .../en/configure/app/output/disable-svgr.mdx | 15 +- .../app/output/disable-ts-checker.mdx | 48 +- .../en/configure/app/output/dist-path.mdx | 41 +- .../app/output/enable-asset-fallback.mdx | 31 +- .../app/output/enable-asset-manifest.mdx | 35 +- .../enable-css-module-tsdeclaration.mdx | 27 +- .../app/output/enable-inline-scripts.mdx | 17 +- .../app/output/enable-inline-styles.mdx | 17 +- .../app/output/enable-latest-decorators.mdx | 9 +- .../en/configure/app/output/externals.mdx | 20 +- .../en/configure/app/output/filename-hash.mdx | 30 +- .../docs/en/configure/app/output/filename.mdx | 49 +- .../en/configure/app/output/inject-styles.mdx | 15 + .../configure/app/output/inline-scripts.mdx | 34 ++ .../en/configure/app/output/inline-styles.mdx | 34 ++ .../configure/app/output/legal-comments.mdx | 18 +- .../docs/en/configure/app/output/minify.mdx | 27 + .../app/output/override-browserslist.mdx | 20 +- .../docs/en/configure/app/output/polyfill.mdx | 14 +- .../en/configure/app/output/source-map.mdx | 30 + ...RouteChunks.mdx => split-route-chunks.mdx} | 0 .../docs/en/configure/app/output/ssg.mdx | 37 +- .../app/output/svg-default-export.mdx | 29 +- .../configure/app/performance/build-cache.mdx | 80 ++- .../app/performance/bundle-analyze.mdx | 20 +- .../configure/app/performance/chunk-split.mdx | 40 +- .../app/performance/dns-prefetch.mdx | 15 +- .../configure/app/performance/preconnect.mdx | 16 +- .../en/configure/app/performance/prefetch.mdx | 21 +- .../en/configure/app/performance/preload.mdx | 23 +- .../app/performance/print-file-size.mdx | 40 +- .../en/configure/app/performance/profile.mdx | 10 +- .../app/performance/remove-console.mdx | 10 +- .../app/performance/remove-moment-locale.mdx | 10 +- .../app/performance/transform-lodash.mdx | 44 +- .../docs/en/configure/app/plugins.mdx | 2 +- .../configure/app/security/check-syntax.mdx | 68 ++- .../docs/en/configure/app/security/nonce.mdx | 15 +- .../docs/en/configure/app/security/sri.mdx | 21 +- .../docs/en/configure/app/server/port.mdx | 5 + .../docs/en/configure/app/server/ssr.mdx | 19 +- .../configure/app/source/alias-strategy.mdx | 10 +- .../docs/en/configure/app/source/alias.mdx | 19 +- .../en/configure/app/source/config-dir.mdx | 2 +- .../en/configure/app/source/decorators.mdx | 29 +- .../docs/en/configure/app/source/define.mdx | 16 +- .../app/source/enable-async-entry.mdx | 2 +- .../en/configure/app/source/entries-dir.mdx | 2 +- .../docs/en/configure/app/source/exclude.mdx | 10 +- .../en/configure/app/source/global-vars.mdx | 105 +++- .../docs/en/configure/app/source/include.mdx | 21 +- .../en/configure/app/source/mainEntryName.mdx | 2 +- .../en/configure/app/source/module-scopes.mdx | 64 ++- .../en/configure/app/source/pre-entry.mdx | 10 +- .../app/source/resolve-extension-prefix.mdx | 50 +- .../app/source/resolve-main-fields.mdx | 41 +- .../configure/app/source/transform-import.mdx | 58 +- .../en/configure/app/tools/autoprefixer.mdx | 43 +- .../docs/en/configure/app/tools/babel.mdx | 220 +++++++- .../en/configure/app/tools/bundler-chain.mdx | 25 +- .../en/configure/app/tools/css-extract.mdx | 33 +- .../en/configure/app/tools/css-loader.mdx | 16 +- .../en/configure/app/tools/dev-server.mdx | 437 ++++++++++++++- .../docs/en/configure/app/tools/esbuild.mdx | 2 +- .../en/configure/app/tools/html-plugin.mdx | 23 +- .../docs/en/configure/app/tools/less.mdx | 80 ++- .../en/configure/app/tools/minify-css.mdx | 52 +- .../docs/en/configure/app/tools/postcss.mdx | 32 +- .../docs/en/configure/app/tools/pug.mdx | 49 +- .../docs/en/configure/app/tools/rspack.mdx | 10 +- .../docs/en/configure/app/tools/sass.mdx | 77 ++- .../en/configure/app/tools/style-loader.mdx | 10 +- .../configure/app/tools/styled-components.mdx | 50 +- .../docs/en/configure/app/tools/swc.mdx | 4 +- .../docs/en/configure/app/tools/terser.mdx | 51 +- .../en/configure/app/tools/ts-checker.mdx | 51 +- .../docs/en/configure/app/tools/ts-loader.mdx | 65 ++- .../en/configure/app/tools/webpack-chain.mdx | 241 +++++++- .../docs/en/configure/app/tools/webpack.mdx | 297 +++++++++- .../en/guides/advanced-features/_meta.json | 1 - .../guides/advanced-features/rspack-start.mdx | 4 +- .../guides/basic-features/css/css-modules.mdx | 4 +- .../en/guides/basic-features/output-files.mdx | 2 +- .../en/guides/basic-features/render/ssg.mdx | 2 +- .../docs/en/guides/concept/builder.mdx | 2 +- .../docs/en/guides/get-started/glossary.mdx | 14 +- .../en/guides/get-started/quick-start.mdx | 2 +- .../micro-frontend/c01-introduction.mdx | 2 +- .../en/guides/troubleshooting/builder.mdx | 4 +- .../docs/en/plugin/cli-plugins/plugin-swc.mdx | 8 +- .../plugin/rsbuild-plugins/plugin-esbuild.mdx | 8 +- .../docs/zh/community/contributing-guide.mdx | 1 - .../main-doc/docs/zh/components/builder.mdx | 3 + .../docs/zh/components/bundler.mdx} | 0 .../docs/zh/components/enableSwc.mdx} | 0 .../docs/zh/components/esbuild.mdx} | 2 +- .../docs/zh/components/micro-frontend.mdx} | 0 .../docs/zh/components/module-federation.mdx} | 0 .../docs/zh/components/nodeVersion.mdx} | 0 .../components/output-asset-prefix-extend.mdx | 0 .../zh/components/output-polyfill-extend.mdx | 1 + .../docs/zh/components/prerequisites.mdx | 2 +- .../zh/components/rsbuild-config-tooltip.mdx | 5 + .../docs/zh/components/rsbuild.mdx} | 0 .../docs/zh/components/rspack.mdx} | 0 .../docs/zh/components/rspackPrecautions.mdx} | 0 .../docs/zh/components}/rspackTip.mdx | 2 +- .../docs/zh/components/swc.mdx} | 0 .../zh/configure/app/dev/asset-prefix.mdx | 14 +- .../zh/configure/app/dev/before-start-url.mdx | 16 +- .../docs/zh/configure/app/dev/client.mdx | 36 +- .../docs/zh/configure/app/dev/hmr.mdx | 10 +- .../docs/zh/configure/app/dev/host.mdx | 17 +- .../docs/zh/configure/app/dev/https.mdx | 74 ++- .../docs/zh/configure/app/dev/live-reload.mdx | 18 +- .../docs/zh/configure/app/dev/port.mdx | 20 +- .../zh/configure/app/dev/progress-bar.mdx | 19 +- .../configure/app/dev/setup-middlewares.mdx | 65 +-- .../docs/zh/configure/app/dev/start-url.mdx | 49 +- .../docs/zh/configure/app/dev/watch-files.mdx | 44 +- .../zh/configure/app/dev/write-to-disk.mdx | 29 +- .../app/experiments/lazy-compilation.mdx | 86 ++- .../app/experiments/source-build.mdx | 31 +- .../docs/zh/configure/app/html/app-icon.mdx | 50 +- .../zh/configure/app/html/crossorigin.mdx | 11 +- .../app/html/disable-html-folder.mdx | 36 +- .../configure/app/html/favicon-by-entries.mdx | 32 +- .../docs/zh/configure/app/html/favicon.mdx | 17 +- .../configure/app/html/inject-by-entries.mdx | 32 +- .../docs/zh/configure/app/html/inject.mdx | 10 +- .../zh/configure/app/html/meta-by-entries.mdx | 43 +- .../docs/zh/configure/app/html/meta.mdx | 24 +- .../docs/zh/configure/app/html/mount-id.mdx | 10 +- .../zh/configure/app/html/script-loading.mdx | 10 +- .../zh/configure/app/html/tags-by-entries.mdx | 39 +- .../docs/zh/configure/app/html/tags.mdx | 15 +- .../app/html/template-by-entries.mdx | 28 +- .../html/template-parameters-by-entries.mdx | 31 +- .../app/html/template-parameters.mdx | 33 +- .../docs/zh/configure/app/html/template.mdx | 10 +- .../configure/app/html/title-by-entries.mdx | 32 +- .../docs/zh/configure/app/html/title.mdx | 18 +- .../zh/configure/app/output/asset-prefix.mdx | 14 +- .../zh/configure/app/output/assets-retry.mdx | 74 ++- .../docs/zh/configure/app/output/charset.mdx | 10 +- .../configure/app/output/clean-dist-path.mdx | 15 +- .../configure/app/output/convert-to-rem.mdx | 79 ++- .../docs/zh/configure/app/output/copy.mdx | 8 +- .../output/css-module-local-ident-name.mdx | 16 +- .../zh/configure/app/output/css-modules.mdx | 48 +- .../configure/app/output/data-uri-limit.mdx | 26 +- .../app/output/disable-css-extract.mdx | 11 +- .../output/disable-css-module-extension.mdx | 54 +- .../app/output/disable-filename-hash.mdx | 11 +- .../output/disable-inline-runtime-chunk.mdx | 40 +- .../configure/app/output/disable-minimize.mdx | 9 +- .../app/output/disable-source-map.mdx | 26 +- .../zh/configure/app/output/disable-svgr.mdx | 16 +- .../app/output/disable-ts-checker.mdx | 48 +- .../zh/configure/app/output/dist-path.mdx | 41 +- .../app/output/enable-asset-fallback.mdx | 31 +- .../app/output/enable-asset-manifest.mdx | 35 +- .../enable-css-module-tsdeclaration.mdx | 27 +- .../app/output/enable-inline-scripts.mdx | 17 +- .../app/output/enable-inline-styles.mdx | 17 +- .../app/output/enable-latest-decorators.mdx | 9 +- .../zh/configure/app/output/externals.mdx | 20 +- .../zh/configure/app/output/filename-hash.mdx | 31 +- .../docs/zh/configure/app/output/filename.mdx | 49 +- .../zh/configure/app/output/inject-styles.mdx | 15 + .../configure/app/output/inline-scripts.mdx | 34 ++ .../zh/configure/app/output/inline-styles.mdx | 34 ++ .../configure/app/output/legal-comments.mdx | 18 +- .../docs/zh/configure/app/output/minify.mdx | 27 + .../app/output/override-browserslist.mdx | 22 +- .../docs/zh/configure/app/output/polyfill.mdx | 14 +- .../zh/configure/app/output/source-map.mdx | 30 + ...RouteChunks.mdx => split-route-chunks.mdx} | 0 .../docs/zh/configure/app/output/ssg.mdx | 34 +- .../app/output/svg-default-export.mdx | 29 +- .../configure/app/performance/build-cache.mdx | 79 ++- .../app/performance/bundle-analyze.mdx | 20 +- .../configure/app/performance/chunk-split.mdx | 40 +- .../app/performance/dns-prefetch.mdx | 15 +- .../configure/app/performance/preconnect.mdx | 16 +- .../zh/configure/app/performance/prefetch.mdx | 21 +- .../zh/configure/app/performance/preload.mdx | 23 +- .../app/performance/print-file-size.mdx | 40 +- .../zh/configure/app/performance/profile.mdx | 10 +- .../app/performance/remove-console.mdx | 10 +- .../app/performance/remove-moment-locale.mdx | 10 +- .../app/performance/transform-lodash.mdx | 44 +- .../docs/zh/configure/app/plugins.mdx | 2 +- .../configure/app/security/check-syntax.mdx | 68 ++- .../docs/zh/configure/app/security/nonce.mdx | 15 +- .../docs/zh/configure/app/security/sri.mdx | 21 +- .../docs/zh/configure/app/server/port.mdx | 5 + .../docs/zh/configure/app/server/ssr.mdx | 19 +- .../configure/app/source/alias-strategy.mdx | 10 +- .../docs/zh/configure/app/source/alias.mdx | 19 +- .../zh/configure/app/source/config-dir.mdx | 2 +- .../zh/configure/app/source/decorators.mdx | 28 +- .../docs/zh/configure/app/source/define.mdx | 16 +- .../app/source/enable-async-entry.mdx | 2 +- .../zh/configure/app/source/entries-dir.mdx | 2 +- .../docs/zh/configure/app/source/exclude.mdx | 10 +- .../zh/configure/app/source/global-vars.mdx | 104 +++- .../docs/zh/configure/app/source/include.mdx | 21 +- .../zh/configure/app/source/mainEntryName.mdx | 2 +- .../zh/configure/app/source/module-scopes.mdx | 64 ++- .../zh/configure/app/source/pre-entry.mdx | 10 +- .../app/source/resolve-extension-prefix.mdx | 52 +- .../app/source/resolve-main-fields.mdx | 41 +- .../configure/app/source/transform-import.mdx | 58 +- .../zh/configure/app/tools/autoprefixer.mdx | 43 +- .../docs/zh/configure/app/tools/babel.mdx | 220 +++++++- .../zh/configure/app/tools/bundler-chain.mdx | 28 +- .../zh/configure/app/tools/css-extract.mdx | 30 +- .../zh/configure/app/tools/css-loader.mdx | 17 +- .../zh/configure/app/tools/dev-server.mdx | 437 ++++++++++++++- .../docs/zh/configure/app/tools/esbuild.mdx | 2 +- .../zh/configure/app/tools/html-plugin.mdx | 23 +- .../docs/zh/configure/app/tools/less.mdx | 81 ++- .../zh/configure/app/tools/minify-css.mdx | 52 +- .../docs/zh/configure/app/tools/postcss.mdx | 33 +- .../docs/zh/configure/app/tools/pug.mdx | 49 +- .../docs/zh/configure/app/tools/rspack.mdx | 10 +- .../docs/zh/configure/app/tools/sass.mdx | 75 ++- .../zh/configure/app/tools/style-loader.mdx | 10 +- .../configure/app/tools/styled-components.mdx | 49 +- .../docs/zh/configure/app/tools/swc.mdx | 4 +- .../docs/zh/configure/app/tools/terser.mdx | 51 +- .../zh/configure/app/tools/ts-checker.mdx | 51 +- .../docs/zh/configure/app/tools/ts-loader.mdx | 65 ++- .../zh/configure/app/tools/webpack-chain.mdx | 245 +++++++- .../docs/zh/configure/app/tools/webpack.mdx | 297 +++++++++- .../zh/guides/advanced-features/_meta.json | 1 - .../guides/advanced-features/rspack-start.mdx | 4 +- .../guides/basic-features/css/css-modules.mdx | 2 +- .../zh/guides/basic-features/output-files.mdx | 4 +- .../docs/zh/guides/concept/builder.mdx | 2 +- .../docs/zh/guides/get-started/glossary.mdx | 14 +- .../zh/guides/get-started/quick-start.mdx | 2 +- .../micro-frontend/c01-introduction.mdx | 2 +- .../zh/guides/troubleshooting/builder.mdx | 4 +- .../docs/zh/plugin/cli-plugins/plugin-swc.mdx | 8 +- .../plugin/rsbuild-plugins/plugin-esbuild.mdx | 12 +- packages/document/main-doc/package.json | 7 +- packages/document/main-doc/scripts/config.ts | 81 --- .../document/main-doc/scripts/summary.en.json | 1 - .../document/main-doc/scripts/summary.zh.json | 1 - packages/document/main-doc/scripts/sync.ts | 57 -- .../src/components/RsbuildLink/index.tsx | 19 + .../module-doc/docs/en/api/config/dev.md | 4 +- .../module-doc/docs/zh/api/config/dev.md | 4 +- packages/document/module-doc/package.json | 2 +- pnpm-lock.yaml | 24 - 576 files changed, 8883 insertions(+), 17001 deletions(-) create mode 100644 .changeset/fast-cups-film.md delete mode 100644 packages/document/builder-doc/.npmignore delete mode 100644 packages/document/builder-doc/CHANGELOG.md delete mode 100644 packages/document/builder-doc/LICENSE delete mode 100644 packages/document/builder-doc/README.md delete mode 100644 packages/document/builder-doc/docs/en/api/config-dev.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-experiments.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-html.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-output.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-performance.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-security.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-source.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/config-tools.mdx delete mode 100644 packages/document/builder-doc/docs/en/api/index.mdx delete mode 100644 packages/document/builder-doc/docs/en/config/dev/assetPrefix.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/beforeStartUrl.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/hmr.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/host.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/https.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/port.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/progressBar.md delete mode 100644 packages/document/builder-doc/docs/en/config/dev/startUrl.md delete mode 100644 packages/document/builder-doc/docs/en/config/experiments/lazyCompilation.md delete mode 100644 packages/document/builder-doc/docs/en/config/experiments/sourceBuild.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/appIcon.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/crossorigin.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/disableHtmlFolder.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/favicon.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/faviconByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/inject.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/injectByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/meta.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/metaByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/mountId.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/scriptLoading.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/tags.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/tagsByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/template.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/templateByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/templateParameters.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/templateParametersByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/title.md delete mode 100644 packages/document/builder-doc/docs/en/config/html/titleByEntries.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/assetPrefix.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/assetsRetry.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/charset.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/cleanDistPath.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/convertToRem.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/copy.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/cssModuleLocalIdentName.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/cssModules.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/dataUriLimit.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableCssExtract.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableCssModuleExtension.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableFilenameHash.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableInlineRuntimeChunk.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableMinimize.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableSourceMap.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableSvgr.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/disableTsChecker.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/distPath.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableAssetFallback.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableAssetManifest.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableCssModuleTSDeclaration.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableInlineScripts.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableInlineStyles.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/enableLatestDecorators.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/externals.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/filename.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/legalComments.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/overrideBrowserslist.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/polyfill.md delete mode 100644 packages/document/builder-doc/docs/en/config/output/svgDefaultExport.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/buildCache.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/bundleAnalyze.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/chunkSplit.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/dnsPrefetch.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/preconnect.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/prefetch.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/preload.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/printFileSize.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/profile.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/removeConsole.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/removeMomentLocale.md delete mode 100644 packages/document/builder-doc/docs/en/config/performance/transformLodash.md delete mode 100644 packages/document/builder-doc/docs/en/config/security/checkSyntax.md delete mode 100644 packages/document/builder-doc/docs/en/config/security/nonce.md delete mode 100644 packages/document/builder-doc/docs/en/config/security/sri.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/alias.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/aliasStrategy.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/define.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/exclude.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/globalVars.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/include.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/moduleScopes.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/preEntry.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/resolveExtensionPrefix.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/resolveMainFields.md delete mode 100644 packages/document/builder-doc/docs/en/config/source/transformImport.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/autoprefixer.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/babel.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/bundlerChain.mdx delete mode 100644 packages/document/builder-doc/docs/en/config/tools/cssExtract.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/cssLoader.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/devServer.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/htmlPlugin.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/less.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/minifyCss.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/postcss.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/pug.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/rspack.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/sass.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/styleLoader.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/styledComponents.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/terser.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/tsChecker.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/tsLoader.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/webpack.md delete mode 100644 packages/document/builder-doc/docs/en/config/tools/webpackChain.md delete mode 100644 packages/document/builder-doc/docs/en/index.md delete mode 100644 packages/document/builder-doc/docs/en/shared/builderRebrandTip.md delete mode 100644 packages/document/builder-doc/docs/en/shared/bundlerChain.md delete mode 100644 packages/document/builder-doc/docs/zh/api/config-dev.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-experiments.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-html.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-output.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-performance.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-security.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-source.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/config-tools.mdx delete mode 100644 packages/document/builder-doc/docs/zh/api/index.mdx delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/assetPrefix.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/beforeStartUrl.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/hmr.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/host.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/https.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/port.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/progressBar.md delete mode 100644 packages/document/builder-doc/docs/zh/config/dev/startUrl.md delete mode 100644 packages/document/builder-doc/docs/zh/config/experiments/lazyCompilation.md delete mode 100644 packages/document/builder-doc/docs/zh/config/experiments/sourceBuild.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/appIcon.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/crossorigin.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/disableHtmlFolder.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/favicon.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/faviconByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/inject.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/injectByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/meta.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/metaByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/mountId.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/scriptLoading.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/tags.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/tagsByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/template.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/templateByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/templateParameters.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/templateParametersByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/title.md delete mode 100644 packages/document/builder-doc/docs/zh/config/html/titleByEntries.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/assetPrefix.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/assetsRetry.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/charset.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/cleanDistPath.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/convertToRem.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/copy.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/cssModuleLocalIdentName.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/cssModules.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/dataUriLimit.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableCssExtract.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableCssModuleExtension.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableFilenameHash.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableInlineRuntimeChunk.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableMinimize.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableSourceMap.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableSvgr.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/disableTsChecker.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/distPath.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableAssetFallback.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableAssetManifest.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableCssModuleTSDeclaration.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableInlineScripts.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableInlineStyles.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/enableLatestDecorators.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/externals.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/filename.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/legalComments.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/overrideBrowserslist.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/polyfill.md delete mode 100644 packages/document/builder-doc/docs/zh/config/output/svgDefaultExport.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/buildCache.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/bundleAnalyze.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/chunkSplit.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/dnsPrefetch.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/preconnect.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/prefetch.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/preload.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/printFileSize.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/profile.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/removeConsole.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/removeMomentLocale.md delete mode 100644 packages/document/builder-doc/docs/zh/config/performance/transformLodash.md delete mode 100644 packages/document/builder-doc/docs/zh/config/security/checkSyntax.md delete mode 100644 packages/document/builder-doc/docs/zh/config/security/nonce.md delete mode 100644 packages/document/builder-doc/docs/zh/config/security/sri.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/alias.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/aliasStrategy.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/define.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/exclude.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/globalVars.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/include.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/moduleScopes.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/preEntry.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/resolveExtensionPrefix.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/resolveMainFields.md delete mode 100644 packages/document/builder-doc/docs/zh/config/source/transformImport.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/autoprefixer.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/babel.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/bundlerChain.mdx delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/cssExtract.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/cssLoader.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/devServer.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/htmlPlugin.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/less.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/minifyCss.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/postcss.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/pug.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/rspack.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/sass.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/styleLoader.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/styledComponents.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/terser.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/tsChecker.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/tsLoader.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/webpack.md delete mode 100644 packages/document/builder-doc/docs/zh/config/tools/webpackChain.md delete mode 100644 packages/document/builder-doc/docs/zh/index.md delete mode 100644 packages/document/builder-doc/docs/zh/shared/builder.md delete mode 100644 packages/document/builder-doc/docs/zh/shared/builderRebrandTip.md delete mode 100644 packages/document/builder-doc/docs/zh/shared/bundlerChain.md delete mode 100644 packages/document/builder-doc/package.json delete mode 100644 packages/document/builder-doc/rspress.config.ts delete mode 100644 packages/document/builder-doc/src/components/NextSteps.module.scss delete mode 100644 packages/document/builder-doc/src/components/NextSteps.tsx delete mode 100644 packages/document/builder-doc/src/components/Step.module.scss delete mode 100644 packages/document/builder-doc/src/components/Step.tsx delete mode 100644 packages/document/builder-doc/src/global.d.ts delete mode 100644 packages/document/builder-doc/src/utils.ts delete mode 100644 packages/document/builder-doc/theme/components/Announcement/index.tsx delete mode 100644 packages/document/builder-doc/theme/index.tsx delete mode 100644 packages/document/builder-doc/tsconfig.json rename packages/document/{builder-doc/docs/en/shared/builder.md => main-doc/docs/en/components/builder.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/bundler.md => main-doc/docs/en/components/bundler.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/enableSwc.md => main-doc/docs/en/components/enableSwc.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/esbuild.md => main-doc/docs/en/components/esbuild.mdx} (50%) rename packages/document/{builder-doc/docs/en/shared/micro-frontend.md => main-doc/docs/en/components/micro-frontend.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/module-federation.md => main-doc/docs/en/components/module-federation.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/nodeVersion.md => main-doc/docs/en/components/nodeVersion.mdx} (100%) create mode 100644 packages/document/main-doc/docs/en/components/output-asset-prefix-extend.mdx create mode 100644 packages/document/main-doc/docs/en/components/output-polyfill-extend.mdx create mode 100644 packages/document/main-doc/docs/en/components/rsbuild-config-tooltip.mdx rename packages/document/{builder-doc/docs/en/shared/rsbuild.md => main-doc/docs/en/components/rsbuild.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/rspack.md => main-doc/docs/en/components/rspack.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared/rspackPrecautions.md => main-doc/docs/en/components/rspackPrecautions.mdx} (100%) rename packages/document/{builder-doc/docs/en/shared => main-doc/docs/en/components}/rspackTip.mdx (67%) rename packages/document/{builder-doc/docs/en/shared/swc.md => main-doc/docs/en/components/swc.mdx} (100%) create mode 100644 packages/document/main-doc/docs/en/configure/app/output/inject-styles.mdx create mode 100644 packages/document/main-doc/docs/en/configure/app/output/inline-scripts.mdx create mode 100644 packages/document/main-doc/docs/en/configure/app/output/inline-styles.mdx create mode 100644 packages/document/main-doc/docs/en/configure/app/output/minify.mdx create mode 100644 packages/document/main-doc/docs/en/configure/app/output/source-map.mdx rename packages/document/main-doc/docs/en/configure/app/output/{splitRouteChunks.mdx => split-route-chunks.mdx} (100%) create mode 100644 packages/document/main-doc/docs/zh/components/builder.mdx rename packages/document/{builder-doc/docs/zh/shared/bundler.md => main-doc/docs/zh/components/bundler.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/enableSwc.md => main-doc/docs/zh/components/enableSwc.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/esbuild.md => main-doc/docs/zh/components/esbuild.mdx} (52%) rename packages/document/{builder-doc/docs/zh/shared/micro-frontend.md => main-doc/docs/zh/components/micro-frontend.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/module-federation.md => main-doc/docs/zh/components/module-federation.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/nodeVersion.md => main-doc/docs/zh/components/nodeVersion.mdx} (100%) create mode 100644 packages/document/main-doc/docs/zh/components/output-asset-prefix-extend.mdx create mode 100644 packages/document/main-doc/docs/zh/components/output-polyfill-extend.mdx create mode 100644 packages/document/main-doc/docs/zh/components/rsbuild-config-tooltip.mdx rename packages/document/{builder-doc/docs/zh/shared/rsbuild.md => main-doc/docs/zh/components/rsbuild.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/rspack.md => main-doc/docs/zh/components/rspack.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared/rspackPrecautions.md => main-doc/docs/zh/components/rspackPrecautions.mdx} (100%) rename packages/document/{builder-doc/docs/zh/shared => main-doc/docs/zh/components}/rspackTip.mdx (63%) rename packages/document/{builder-doc/docs/zh/shared/swc.md => main-doc/docs/zh/components/swc.mdx} (100%) create mode 100644 packages/document/main-doc/docs/zh/configure/app/output/inject-styles.mdx create mode 100644 packages/document/main-doc/docs/zh/configure/app/output/inline-scripts.mdx create mode 100644 packages/document/main-doc/docs/zh/configure/app/output/inline-styles.mdx create mode 100644 packages/document/main-doc/docs/zh/configure/app/output/minify.mdx create mode 100644 packages/document/main-doc/docs/zh/configure/app/output/source-map.mdx rename packages/document/main-doc/docs/zh/configure/app/output/{splitRouteChunks.mdx => split-route-chunks.mdx} (100%) delete mode 100644 packages/document/main-doc/scripts/config.ts delete mode 100644 packages/document/main-doc/scripts/summary.en.json delete mode 100644 packages/document/main-doc/scripts/summary.zh.json delete mode 100644 packages/document/main-doc/scripts/sync.ts create mode 100644 packages/document/main-doc/src/components/RsbuildLink/index.tsx diff --git a/.changeset/fast-cups-film.md b/.changeset/fast-cups-film.md new file mode 100644 index 000000000000..8192cda53600 --- /dev/null +++ b/.changeset/fast-cups-film.md @@ -0,0 +1,7 @@ +--- +'@modern-js/main-doc': patch +--- + +docs: refactor builder config doc + +docs: 重构 builder 配置文档 diff --git a/package.json b/package.json index f09f1fe06953..a077735d0eb0 100644 --- a/package.json +++ b/package.json @@ -43,8 +43,8 @@ "update-codesmith": "cd ./scripts/update-codesmith && pnpm start", "update-rspress": "npx taze major --include /rspress/ -w -r -l", "update-rsbuild": "npx taze major --include /rsbuild/ -w -r -l", - "build:main_docs": "pnpm --filter @modern-js/main-doc... build && pnpm --filter @modern-js/main-doc build:doc", - "build:module_docs": "pnpm --filter @modern-js/module-tools-docs... build && pnpm --filter @modern-js/module-tools-docs build:doc", + "build:main_docs": "pnpm --filter @modern-js/main-doc... build && pnpm --filter @modern-js/main-doc build", + "build:module_docs": "pnpm --filter @modern-js/module-tools-docs... build && pnpm --filter @modern-js/module-tools-docs build", "gen:docs": "rm -rf doc_output && mkdir doc_output && cp -r ./packages/document/main-doc/doc_build/* ./doc_output && cp -r ./packages/document/module-doc/doc_build/ ./doc_output/module-tools", "build:docs": "pnpm run build:main_docs && pnpm run build:module_docs && pnpm run gen:docs" }, diff --git a/packages/cli/uni-builder/src/types.ts b/packages/cli/uni-builder/src/types.ts index 0f8f84f35e99..6c9b6f7e4a02 100644 --- a/packages/cli/uni-builder/src/types.ts +++ b/packages/cli/uni-builder/src/types.ts @@ -224,9 +224,8 @@ export type UniBuilderExtraConfig = { }; output?: { /** - * Whether to disable code minification in production build. + * @deprecated use `output.minify` instead */ - // TODO: support output.minify configuration disableMinimize?: boolean; /** * @deprecated use `output.filenameHash` instead diff --git a/packages/document/builder-doc/.npmignore b/packages/document/builder-doc/.npmignore deleted file mode 100644 index dab0a9ffa8ff..000000000000 --- a/packages/document/builder-doc/.npmignore +++ /dev/null @@ -1,29 +0,0 @@ -.DS_Store - -.pnp -.pnp.js -.env.local -.env.*.local -*.log* - -node_modules/ -*.tsbuildinfo -.eslintcache - -coverage/ -tests/ - -.vscode/**/* -!.vscode/settings.json -!.vscode/extensions.json -.idea/ - -jest.config.js -.eslintrc.js -.eslintrc -tsconfig.json -CHANGELOG.md - -.nx-cache/ -scripts/ -doc_build diff --git a/packages/document/builder-doc/CHANGELOG.md b/packages/document/builder-doc/CHANGELOG.md deleted file mode 100644 index e1a8811c2061..000000000000 --- a/packages/document/builder-doc/CHANGELOG.md +++ /dev/null @@ -1,522 +0,0 @@ -# @modern-js/builder-doc - -## 2.60.0 - -## 2.59.0 - -### Patch Changes - -- a156893: refactor: improve framework routes,data-solutions,render docs - refactor: 优化框架的路由、数据解决方案、渲染文档 -- 0c48595: docs: update Rspack precautions - -## 2.58.3 - -## 2.58.2 - -## 2.58.1 - -### Patch Changes - -- 1d2465e: docs: update Rsbuild plugin links -- 3824a0e: refactor(website): refactor modern.js docs to latest usage of rspress - refactor(website): 重构 modern.js 文档,使用最新 rspress 的用法 - -## 2.58.0 - -## 2.57.1 - -## 2.57.0 - -## 2.56.2 - -## 2.56.1 - -## 2.56.0 - -### Patch Changes - -- dee8a8c: chore(deps): bump rspress to 1.26.1 - -## 2.55.0 - -## 2.54.6 - -## 2.54.5 - -## 2.54.4 - -## 2.54.3 - -## 2.54.2 - -## 2.54.1 - -## 2.54.0 - -### Patch Changes - -- 38537fc: optimize the doc content - -## 2.53.0 - -## 2.52.0 - -## 2.51.0 - -## 2.50.0 - -## 2.49.4 - -## 2.49.3 - -## 2.49.2 - -## 2.49.1 - -### Patch Changes - -- bfba084: docs: bump Rspress v1.18.2 and remove dividers - -## 2.49.0 - -## 2.48.6 - -## 2.48.5 - -## 2.48.4 - -### Patch Changes - -- f11abf7: docs: fix dead link in source.alias - -## 2.48.3 - -## 2.48.2 - -## 2.48.1 - -## 2.48.0 - -## 2.47.1 - -## 2.47.0 - -### Patch Changes - -- 42cc427: chore(builder-cli): builder-cli is no longer maintained, please use rsbuild instead - - chore(builder-cli): builder-cli 不再维护, 可使用 rsbuild 代替 - -- 52185fc: chore(plugin-vue): builder vue & vue2 plugin is no longer maintained, please use rsbuild instead - - chore(plugin-vue): builder vue & vue2 插件不再维护, 请使用 rsbuild 代替 - -## 2.46.1 - -## 2.46.0 - -### Patch Changes - -- 6bc042d: chore: remove tools.inspector api, please use rsdoctor instead - - chore: 移除 tools.inspector api, 可使用 rsdoctor 代替 - -## 2.45.0 - -## 2.44.0 - -## 2.43.0 - -### Patch Changes - -- 4b4d08a: chore: remove Rsbuild unsupported CHAIN_ID - - chore: 移除在 Rsbuild 中不支持的 CHAIN_ID - -## 2.42.2 - -## 2.42.1 - -### Patch Changes - -- 7d327e5: docs: change builderCofnig to builderConfig - -## 2.42.0 - -### Patch Changes - -- e8d838c: fix: update storybook doc file extension - fix: 更新 Storybook 文档后缀 -- 6434114: fix: change storybook doc file extension - fix: 修改 Storybook 文档文件后缀 - -## 2.41.0 - -### Patch Changes - -- 3164aad: chore(storybook): enhance docs and auto detect builder provider - - chore(storybook): 改进文档,自动判断的 builder provider - -## 2.40.0 - -### Patch Changes - -- 477f18d: doc(builder-doc): add version tip for sourceBuild api - doc(builder-doc): 为 sourceBuild API 添加版本提示信息 - -## 2.39.2 - -## 2.39.1 - -## 2.39.0 - -## 2.38.0 - -## 2.37.2 - -## 2.37.1 - -## 2.37.0 - -### Patch Changes - -- 21c0976: fix: correct content about disableHtmlFolder API - fix: 更正 disableHtmlFolder API 的内容 - -## 2.36.0 - -## 2.35.1 - -### Patch Changes - -- ea3fe18: feat(app-tools): make logs easier to read - - feat(app-tools): 让日志更容易阅读 - -## 2.35.0 - -## 2.34.0 - -## 2.33.1 - -## 2.33.0 - -## 2.32.1 - -## 2.32.0 - -### Patch Changes - -- 0cc3981: chore(builder): use standard utils to get and make up publicPath - - chore(builder): 使用标准的 utils 来读取和组装 publicPath - -## 2.31.2 - -## 2.31.1 - -## 2.31.0 - -## 2.30.0 - -### Patch Changes - -- cc5f49e: feat(builder): add performance.transformLodash config - - feat(builder): 新增 performance.transformLodash 配置 - -## 2.29.0 - -## 2.28.0 - -## 2.27.0 - -### Patch Changes - -- 86274f5: docs: add source code build documentation - docs: 添加源码构建文档 - -## 2.26.0 - -## 2.25.2 - -## 2.25.1 - -## 2.25.0 - -## 2.24.0 - -## 2.23.1 - -### Patch Changes - -- 4d4dca0: feat(builder): add new plugin.remove option - - feat(builder): 新增 plugin.remove 选项 - -## 2.23.0 - -### Patch Changes - -- 7e6fb5f: chore: publishConfig add provenance config - - chore: publishConfig 增加 provenance 配置 - -- 692cc0e: fix(builder): assetsRetry.crossOrigin default to html.crossorigin - - fix(builder): assetsRetry.crossOrigin 默认值与 html.crossorigin 保持一致 - -## 2.22.1 - -### Patch Changes - -- bd4b150: feat(builder): add builder.serve method - - feat(builder): 新增 builder.serve 方法 - -- 2ede584: docs(main): update start doc - - docs(main): 更新开始文档 - -## 2.22.0 - -### Patch Changes - -- 850cde6: feat(builder): add arco config to transformImport by default - - feat(builder): 默认增加 arco 的 transformImport 配置 - -- e7a5f94: feat(plugin-swc): should reduce lodash bundle size by default - - feat(plugin-swc): 默认优化 lodash 包体积 - -## 2.21.1 - -## 2.21.0 - -### Patch Changes - -- 1ef03dc: feat(dev-server): enable gzip compression, add devServer.compress config - - feat(dev-server): 默认启用 gzip 压缩,新增 devServer.compress 配置项 - -## 2.20.0 - -## 2.19.1 - -## 2.19.0 - -## 2.18.1 - -## 2.18.0 - -## 2.17.1 - -## 2.17.0 - -## 2.16.0 - -### Patch Changes - -- fe92de6: fix(builder): browserslist config should not affect node bundles - - fix(builder): 修复 browserslist 配置会对 node 产物生效的问题 - -- 4e876ab: chore: package.json include the monorepo-relative directory - - chore: 在 package.json 中声明 monorepo 的子路径 - -## 2.15.0 - -## 2.14.0 - -### Patch Changes - -- fefd1c5: feat(builder): add convertToRem.inlineRuntime config - - feat(builder): 新增 convertToRem.inlineRuntime 配置项 - -- 1f34dba: fix(devServer): using current host and port to create HMR connection - - fix(devServer): 建立 HMR 连接时默认使用当前 host 和 port - -- b965df2: fix(builder): update source.alias type when using Rspack - - fix(builder): 更新使用 Rspack 时的 source.alias 类型 - -## 2.13.4 - -## 2.13.3 - -### Patch Changes - -- 28583e8: feat(builder): add assetsRetry.inlineScript config - - feat(builder): 新增 assetsRetry.inlineScript 配置项 - -## 2.13.2 - -## 2.13.1 - -## 2.13.0 - -### Patch Changes - -- 1feacdc: feat(builder): support using RegExp to inline part of chunks - - feat(builder): 支持通过正则来内联部分资源 - -- 348306d: feat(builder): add html.scriptLoading config - - feat(builder): 新增 html.scriptLoading 配置 - -- 42700c1: chore: improve ssr docs, add more use case for node/web code split - chore: 优化 ssr 文档,为 node/web 代码分割添加更多使用场景 - -## 2.12.0 - -## 2.11.0 - -### Patch Changes - -- a8c08c3: feat: 添加 `source.transformImoprt` - - feat: add `source.transformImoprt` - -- b71cef1: feat(builder): support setting forceSplitting to be an object - - feat(builder): 支持将 forceSplitting 设置为一个对象 - -## 2.10.0 - -### Patch Changes - -- cfdbf80: fix(builder): update source.define type and schema check in rspack-provider - - fix(builder): 更新 rspack-provider 中 source.define 的类型定义与校验 - -## 2.9.0 - -## 2.8.0 - -### Minor Changes - -- 9736c6a43d: feat: enable swc css minify - - feat: 启用 swc css 压缩 - -### Patch Changes - -- 2c1151271d: fix(builder): fix incorrect browserslist config - - fix(builder): 修复错误的 browserslist 配置 - -## 2.7.0 - -### Patch Changes - -- 54caf43349: fix: performance.chunkSplit.strategy position - - fix: 修复 performance.chunkSplit.strategy 位置错误 - -## 2.6.0 - -### Minor Changes - -- fae9d1b: feat(builder): support import .wasm assets - - feat(builder): 支持引用 .wasm 资源 - -### Patch Changes - -- 88f7b34: fix(app-tools): incorrect tools.esbuild config - - fix(app-tools): 修复 tools.esbuild 格式与文档不一致的问题 - -- 107f674: feat(builder): add dev.beforeStartUrl config - - feat(builder): 新增 dev.beforeStartUrl 配置项 - -## 2.5.0 - -### Patch Changes - -- c5ea222: feat(builder): support mergeConfig util in tools.webpack - - feat(builder): 支持在 tools.webpack 中使用 mergeConfig 工具函数 - -- 138a6b5: chore: update README and description of module-tools packages - - chore: 更新 module-tools 相关包的 README 和 description - -## 2.4.0 - -### Patch Changes - -- dfdd35a: docs: make v2 docs as default - - docs: 将 Modern.js v2 文档作为默认文档 - -- e787a45: feat: Add config to enable legacy decorator and 2 css-in-js plugins, update swc version - - feat: 以及 2 个 css-in-js 插件,升级 swc 版本 - -- ddc326a: feat: flatten mdx content - - feat: 对 mdx 的内容进行扁平化 - -## 2.3.0 - -### Patch Changes - -- 01e4a27: feat(builder): improve error logs of syntax checker - - feat(builder): 优化 syntax 检查的错误日志 - -## 2.2.0 - -### Patch Changes - -- d82b621: feat(builder): support port placeholder in dev.startUrl config - - feat(builder): 支持在 dev.startUrl 配置项中使用端口号占位符 - -- 9da67a2: docs(Builder): fix some keyword is replaced incorrectly - - docs(Builder): 修复个别关键词被错误替换的问题 - -- 16bdc0a: chore: adjust builder plugin name - - chore: 调整 builder 插件命名格式 - -## 2.1.0 - -### Minor Changes - -- 8a9482c: feat(builder): add new option `html.tags` & `html.tagsByEntries` - - feat(builder): 添加新的配置项 `html.tags` 和 `html.tagsByEntries` - -### Patch Changes - -- 32b14f8: fix: fix doc description - - fix: 修复文档描述 - -- 837620c: fix: Disable detect tsconfig.json - fix: 禁用探测 tsconfig.json -- 5b54418: fix(builder): no longer remove comments of HTML - - fix(builder): 不再默认移除 HTML 中的注释 - -- 6efa881: feat(doc-core): append main title as a suffix - - feat(doc-core): 将站点名称作为页面标题的后缀 - -## 2.0.0 - -### Major Changes - -Initial Release diff --git a/packages/document/builder-doc/LICENSE b/packages/document/builder-doc/LICENSE deleted file mode 100644 index 39e3c5971226..000000000000 --- a/packages/document/builder-doc/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021-present Modern.js - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/document/builder-doc/README.md b/packages/document/builder-doc/README.md deleted file mode 100644 index e9c2dddd3cd1..000000000000 --- a/packages/document/builder-doc/README.md +++ /dev/null @@ -1,38 +0,0 @@ -

- Modern.js Logo -

-

- Modern.js Builder -
- - modernjs.dev/builder - -

-

- An Rspack-based build tool for web development. -

- -# @modern-js/builder-doc - -This package provides the documentation snippets of Modern.js Builder. - -## Getting Started - -- [Introduction](https://modernjs.dev/builder/en/guide/introduction.html) -- [API References](https://modernjs.dev/builder/en/api/) - -## Contributing - -- [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md) - -### Local Development - -``` -$ pnpm run dev -``` - -### Build - -``` -$ pnpm run build -``` diff --git a/packages/document/builder-doc/docs/en/api/config-dev.mdx b/packages/document/builder-doc/docs/en/api/config-dev.mdx deleted file mode 100644 index b1e8072e81c6..000000000000 --- a/packages/document/builder-doc/docs/en/api/config-dev.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -extractApiHeaders: [2] ---- - -# Dev Config - -import BuilderRebrandTip from '@en/shared/builderRebrandTip.md' - - - -This section describes some dev configurations in Modern.js Builder. - -## dev.assetPrefix - -import AssetPrefix from '@en/config/dev/assetPrefix.md'; - - - -## dev.beforeStartUrl - -import BeforeStartUrl from '@en/config/dev/beforeStartUrl.md'; - - - -## dev.hmr - -import Hmr from '@en/config/dev/hmr.md'; - - - -## dev.host - -import Host from '@en/config/dev/host.md'; - - - -## dev.https - -import Https from '@en/config/dev/https.md'; - - - -## dev.port - -import Port from '@en/config/dev/port.md'; - - - -## dev.progressBar - -import ProgressBar from '@en/config/dev/progressBar.md'; - - - -## dev.startUrl - -import StartUrl from '@en/config/dev/startUrl.md'; - - diff --git a/packages/document/builder-doc/docs/en/api/config-experiments.mdx b/packages/document/builder-doc/docs/en/api/config-experiments.mdx deleted file mode 100644 index 4a362f523f98..000000000000 --- a/packages/document/builder-doc/docs/en/api/config-experiments.mdx +++ /dev/null @@ -1,26 +0,0 @@ ---- -extractApiHeaders: [2] ---- - -# Experiments Config - -import BuilderRebrandTip from '@en/shared/builderRebrandTip.md' - - - -This section describes some experimental configs in the Builder, which can enable unstable features in Builder. - -If you meet issues with experimental features, please disable the config first and report through [GitHub Issues](https://github.com/web-infra-dev/modern.js/issues). - -## experiments.lazyCompilation - -import LazyCompilation from '@en/config/experiments/lazyCompilation.md'; - - - -## experiments.sourceBuild - -import SourceBuild from '@en/config/experiments/sourceBuild.md'; - - - diff --git a/packages/document/builder-doc/docs/en/api/config-html.mdx b/packages/document/builder-doc/docs/en/api/config-html.mdx deleted file mode 100644 index 6b6bd45ef024..000000000000 --- a/packages/document/builder-doc/docs/en/api/config-html.mdx +++ /dev/null @@ -1,125 +0,0 @@ ---- -extractApiHeaders: [2] ---- - -# Html Config - -import BuilderRebrandTip from '@en/shared/builderRebrandTip.md' - - - -This section describes some HTML configurations in Modern.js Builder. - -## html.appIcon - -import AppIcon from '@en/config/html/appIcon.md'; - - - -## html.crossorigin - -import Crossorigin from '@en/config/html/crossorigin.md'; - - - -## html.disableHtmlFolder - -import DisableHtmlFolder from '@en/config/html/disableHtmlFolder.md'; - - - -## html.favicon - -import Favicon from '@en/config/html/favicon.md'; - - - -## html.faviconByEntries - -import FaviconByEntries from '@en/config/html/faviconByEntries.md'; - - - -## html.inject - -import Inject from '@en/config/html/inject.md'; - - - -## html.injectByEntries - -import InjectByEntries from '@en/config/html/injectByEntries.md'; - - - -## html.meta - -import Meta from '@en/config/html/meta.md'; - - - -## html.metaByEntries - -import MetaByEntries from '@en/config/html/metaByEntries.md'; - - - -## html.mountId - -import MountId from '@en/config/html/mountId.md'; - - - -## html.scriptLoading - -import ScriptLoading from '@en/config/html/scriptLoading.md'; - - - -## html.tags - -import Tags from '@en/config/html/tags.md'; - - - -## html.tagsByEntries - -import TagsByEntries from '@en/config/html/tagsByEntries.md'; - - - -## html.template - -import Template from '@en/config/html/template.md'; - -