From a4bf28651ed6d833189a7b356b3055637232a932 Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Wed, 28 Aug 2024 16:39:05 +0800 Subject: [PATCH] feat(html): support js template without child compiler --- crates/rspack_plugin_html/src/plugin.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/rspack_plugin_html/src/plugin.rs b/crates/rspack_plugin_html/src/plugin.rs index 764b551f532..76a8397e886 100644 --- a/crates/rspack_plugin_html/src/plugin.rs +++ b/crates/rspack_plugin_html/src/plugin.rs @@ -356,10 +356,13 @@ async fn process_assets(&self, compilation: &mut Compilation) -> Result<()> { Mode::Production => "production", Mode::None => "none", }, + "output": { + "publicPath": config.get_public_path(compilation, &self.config.filename), "crossOriginLoading": match &compilation.options.output.cross_origin_loading { CrossOriginLoading::Disable => "false", CrossOriginLoading::Enable(value) => value, }, + } }, }), );