mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 14:52:54 +01:00
fix: deploy in devmode (#74)
This occurred because building in dev mode does not create the source map files which it expects to copy over.
This commit is contained in:
@@ -67,6 +67,14 @@ async function _writeFileToFolder({
|
|||||||
runtimeType
|
runtimeType
|
||||||
}: WriteFileToFolderArgs) {
|
}: WriteFileToFolderArgs) {
|
||||||
const fullPath = filesystem.join(getExternalFolderPath(), runtimeType, url);
|
const fullPath = filesystem.join(getExternalFolderPath(), runtimeType, url);
|
||||||
|
|
||||||
|
if (!filesystem.exists(fullPath)) {
|
||||||
|
// TODO: Save this warning somewhere, usually, this is not an issue though.
|
||||||
|
// This occurred because building in dev mode does not create the source map
|
||||||
|
// files which it expects to copy over.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let content = await filesystem.readFile(fullPath);
|
let content = await filesystem.readFile(fullPath);
|
||||||
let filename = url;
|
let filename = url;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user