Add lifecycles to add image

This commit is contained in:
Dolan
2018-12-05 00:05:11 +00:00
parent 8fd99052fb
commit 39066fb5f2
7 changed files with 92 additions and 69 deletions

View File

@ -36,6 +36,10 @@ export class Compiler {
public async compile(file: File): Promise<JSZip> {
const zip = new JSZip();
// Run precompile steps
file.onCompile();
file.Headers.forEach((header) => header.onCompile());
const xmlifiedFileMapping = this.xmlifyFile(file);
for (const key in xmlifiedFileMapping) {