Skip to content

Commit

Permalink
revert: SSR模式下,多输出一份和index.html完全一致的*.html文件,用于ER场景 (#11734)
Browse files Browse the repository at this point in the history
* fix: dev环境构建SSR server.js时,环境判断错误导致输出的dev产物带上了hash

* Update packages/preset-umi/src/features/ssr/webpack/webpack.ts

Co-authored-by: chencheng (云谦) <[email protected]>

* fix: dev环境构建SSR server.js时,环境判断错误导致输出的dev产物带上了hash

* feature: 支持自定义SSR构建目标,默认为node,可配置为webworker以支持运行在类似Cloudflare Workers的平台
以解决 react-dom/server renderToReadableStream 不存在的问题

* feature: getManifest支持传入sourceDir表示SSR产物目录

* feature: getManifest支持传入sourceDir表示SSR产物目录

* fix: rendertoreadablestream is not a function

* Revert "feature: 支持自定义SSR构建目标,默认为node,可配置为webworker以支持运行在类似Cloudflare Workers的平台"

This reverts commit 5b0946a.

* fix: rendertoreadablestream is not a function

* Update packages/server/src/ssr.ts

Co-authored-by: 咲奈Sakina <[email protected]>

* Update packages/server/src/ssr.ts

Co-authored-by: 咲奈Sakina <[email protected]>

* fix: 还原g_getAssets

* fix: 被执行时才调用getManifest(),避免在入口立即调用getManifest()

* fix: 被执行时才调用getManifest(),避免在入口立即调用getManifest()

* fix: 被执行时才调用getManifest(),避免在入口立即调用getManifest()

* feature: SSR模式下,多输出一份和index.html完全一致的*.html文件,用于ER场景

* feature: SSR模式下,多输出一份和index.html完全一致的*.html文件,用于ER场景

* fix: SSR withoutHTML模式下,包一层<div id="root">{app}</div>

* fix: 回滚SSR模式下,多输出一份和index.html完全一致的*.html文件,用于ER场景

---------

Co-authored-by: 奇风 <[email protected]>
Co-authored-by: chencheng (云谦) <[email protected]>
Co-authored-by: 咲奈Sakina <[email protected]>
  • Loading branch information
4 people authored Oct 13, 2023
1 parent e342e82 commit 0f5f749
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/preset-umi/src/features/ssr/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ export default function handler(request, response) {
}
});

api.onBuildHtmlComplete(() => {
// SSR模式下,多输出一份和index.html完全一致的*.html文件,用于ER场景
fsExtra.copyFileSync(join(api.paths.absOutputPath, 'index.html'), join(api.paths.absOutputPath, '*.html'));
})

const pluginName = 'ProcessAssetsPlugin';
class ProcessAssetsPlugin {
apply(compiler: Compiler) {
Expand Down

0 comments on commit 0f5f749

Please sign in to comment.