Skip to content

Commit 6f8014b

Browse files
committed
Move css & images into css & img directories
1 parent 55a14b5 commit 6f8014b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
10871087
const urlRef =
10881088
this.assets.type === 'inline'
10891089
? `data:font/${fontType};base64,${FONT_FILE_CONTENTS.get(fontFile)!.toString('base64')}`
1090-
: `./${fontFile}`;
1090+
: `../${fontFile}`;
10911091
return `${indent}src: local(${displayName}), local(${postScriptName}), url(${urlRef}) format('${fontType}');`;
10921092
},
10931093
)
@@ -1112,8 +1112,8 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
11121112
: process.cwd();
11131113

11141114
const scriptLocationOnDisk = path.join(this.assets.directory, 'ecmarkup.js');
1115-
const styleLocationOnDisk = path.join(this.assets.directory, 'ecmarkup.css');
1116-
const printStyleLocationOnDisk = path.join(this.assets.directory, 'print.css');
1115+
const styleLocationOnDisk = path.join(this.assets.directory, 'css', 'ecmarkup.css');
1116+
const printStyleLocationOnDisk = path.join(this.assets.directory, 'css', 'print.css');
11171117

11181118
this.generatedFiles.set(scriptLocationOnDisk, jsContents);
11191119
this.generatedFiles.set(styleLocationOnDisk, cssContents);
@@ -1126,7 +1126,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
11261126
}
11271127
for (const imgFile of IMG_FILES) {
11281128
this.generatedFiles.set(
1129-
path.join(this.assets.directory, imgFile),
1129+
path.join(this.assets.directory, 'img', imgFile),
11301130
IMG_FILE_CONTENTS.get(imgFile)!,
11311131
);
11321132
}

0 commit comments

Comments
 (0)