From 6dbb1730d853335ba72d75ebe3e5c48f15421859 Mon Sep 17 00:00:00 2001 From: ZLY201 <951711127@qq.com> Date: Sun, 26 Nov 2023 03:13:17 +0800 Subject: [PATCH 1/2] feat: support generate ssr content in devlopment mode --- html/index.html | 4 +- package.json | 6 +- src/modules/Editor/monaco-editor.tsx | 2 +- tools/RspackSSRPlugin.ts | 74 +++++++++++++++++++ .../rspack.base.config.ts | 13 ++-- rspack.config.ts => tools/rspack.config.ts | 24 +++--- .../rspack.ssr.config.ts | 3 +- 7 files changed, 97 insertions(+), 29 deletions(-) create mode 100644 tools/RspackSSRPlugin.ts rename rspack.base.config.ts => tools/rspack.base.config.ts (83%) rename rspack.config.ts => tools/rspack.config.ts (85%) rename rspack.ssr.config.ts => tools/rspack.ssr.config.ts (91%) diff --git a/html/index.html b/html/index.html index 1d6f2e9..8486ac2 100644 --- a/html/index.html +++ b/html/index.html @@ -7,8 +7,6 @@
-