Skip to content

Commit

Permalink
Move css & images into css & img directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gesa committed Jul 3, 2024
1 parent 1b8a4f3 commit eca8422
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}');`;
},
)
Expand All @@ -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);
Expand All @@ -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)!,
);
}
Expand Down

0 comments on commit eca8422

Please sign in to comment.