this is typescript now too
This commit is contained in:
parent
bd778cbd1c
commit
33c6ca723c
|
@ -43,7 +43,7 @@ export function buildConfig ({
|
||||||
return finalName;
|
return finalName;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOutputFilename (entryPath, ext) {
|
function getOutputFilename (entryPath, ext?) {
|
||||||
const base = relative(manifestDirname, dirname(entryPath));
|
const base = relative(manifestDirname, dirname(entryPath));
|
||||||
return join(base, uniqueFileNameSegment(entryPath, ext));
|
return join(base, uniqueFileNameSegment(entryPath, ext));
|
||||||
}
|
}
|
||||||
|
@ -92,8 +92,8 @@ export function buildConfig ({
|
||||||
// Emit the asset as part of the build step
|
// Emit the asset as part of the build step
|
||||||
this.emitFile({
|
this.emitFile({
|
||||||
type: 'asset',
|
type: 'asset',
|
||||||
fileName: getOutputFilename(absolutePath),
|
fileName: outPath,
|
||||||
source: readFileSync(absolutePath),
|
source: readFileSync(path),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
Loading…
Reference in a new issue