Make it so that Handlebars partials get reloaded automatically

This commit is contained in:
Oliver-Akins 2023-11-26 01:30:15 -07:00
parent 93b55df045
commit dda38b6695
3 changed files with 45 additions and 11 deletions

View file

@ -1,11 +1,15 @@
// Class imports
import { CharacterActor } from "./documents/CharacterActor.js";
import { CharacterSheet } from "./sheets/CharacterSheet.js";
// Utility imports
import * as hbs from "./handlebars.js";
// import diceChoice from "../templates/actors/char-sheet-mvp/partials/dice_choice.hbs?raw";
// Non-Setup hooks
import "./hooks/hotReload.js";
Hooks.once(`init`, async function () {
Hooks.once(`init`, async () => {
game.boilerplate = {
CharacterActor,
};
@ -20,6 +24,6 @@ Hooks.once(`init`, async function () {
});
Hooks.once(`ready`, function() {
Hooks.once(`ready`, () => {
console.info(".dungeon | Ready");
});