diff --git a/src/Spec.ts b/src/Spec.ts index 3fcbdef1..ee718702 100644 --- a/src/Spec.ts +++ b/src/Spec.ts @@ -1087,7 +1087,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))} const urlRef = this.assets.type === 'inline' ? `data:font/${fontType};base64,${FONT_FILE_CONTENTS.get(fontFile)!.toString('base64')}` - : `./${fontFile}`; + : `../${fontFile}`; return `${indent}src: local(${displayName}), local(${postScriptName}), url(${urlRef}) format('${fontType}');`; }, ) @@ -1112,8 +1112,8 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))} : process.cwd(); const scriptLocationOnDisk = path.join(this.assets.directory, 'ecmarkup.js'); - const styleLocationOnDisk = path.join(this.assets.directory, 'ecmarkup.css'); - const printStyleLocationOnDisk = path.join(this.assets.directory, 'print.css'); + const styleLocationOnDisk = path.join(this.assets.directory, 'css', 'ecmarkup.css'); + const printStyleLocationOnDisk = path.join(this.assets.directory, 'css', 'print.css'); this.generatedFiles.set(scriptLocationOnDisk, jsContents); this.generatedFiles.set(styleLocationOnDisk, cssContents); @@ -1126,7 +1126,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))} } for (const imgFile of IMG_FILES) { this.generatedFiles.set( - path.join(this.assets.directory, imgFile), + path.join(this.assets.directory, 'img', imgFile), IMG_FILE_CONTENTS.get(imgFile)!, ); }