Skip to content

Commit

Permalink
feat(html): support js template without child compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Aug 28, 2024
1 parent 6ad6f10 commit a4bf286
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/rspack_plugin_html/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
},
}),
);
Expand Down

0 comments on commit a4bf286

Please sign in to comment.