Add hot-reloading for CSS as required

This commit is contained in:
Oliver-Akins 2024-12-21 23:24:20 -07:00
parent e435f9102b
commit 06c5320786

View file

@ -7,10 +7,7 @@ const loaders = {
Hooks.call(`${game.system.id}-hmr:svg`, iconName, data); Hooks.call(`${game.system.id}-hmr:svg`, iconName, data);
}, },
mjs() {window.location.reload()}, mjs() {window.location.reload()},
css(data) { css() {window.location.reload()},
Logger.debug(`Hot-reloading CSS: ${data.path}`);
Hooks.call(`${game.system.id}-hmr:css`, data);
},
}; };
Hooks.on(`hotReload`, async (data) => { Hooks.on(`hotReload`, async (data) => {