use bevy::{asset::AssetMetaCheck, prelude::*};
pub(super) fn plugin(app: &mut App) {
app.add_plugins(
DefaultPlugins
.set(AssetPlugin {
// Wasm builds will check for meta files (that don't exist) if this isn't set.
// This causes errors and even panics on web build on itch.
// See https://github.com/bevyengine/bevy_github_ci_template/issues/48.
meta_check: AssetMetaCheck::Never,
..default()
})
.set(ImagePlugin::default_nearest())
.set(WindowPlugin {
primary_window: Window {
title: "CHAINMAILER".to_string(),
fit_canvas_to_parent: true,
..default()
}
.into(),
..default()
}),
);
}