Skip to main content

REACT_ASSETS

Static REACT_ASSETS 

Source
pub static REACT_ASSETS: PluginAssets
Expand description

The loader bundle. It holds one file, LOADER_JS.

ReactPlugin installs it. Use it directly only to make URLs or tags yourself:

use autumn_plugin_react::{LOADER_JS, REACT_ASSETS};

let url = REACT_ASSETS.url(LOADER_JS);
assert!(url.starts_with("/static/_plugins/react/react-islands."), "{url}");
assert!(REACT_ASSETS.integrity(LOADER_JS).is_some_and(|s| s.starts_with("sha384-")));

PluginAssets::from_files does not need the embed-assets feature, so the host app does not need it either.