Fixes #1014
parent
102e6d10eb
commit
49f52e42d0
|
@ -15,6 +15,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
|
|||
.map((p) => ({
|
||||
name: p,
|
||||
contentType: this.assetBundle.getMimeType(p),
|
||||
created: this.assetBundle.getMtime(p),
|
||||
lastModified: this.assetBundle.getMtime(p),
|
||||
perm: "ro",
|
||||
size: -1,
|
||||
|
@ -31,6 +32,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
|
|||
data,
|
||||
meta: {
|
||||
contentType: this.assetBundle.getMimeType(name),
|
||||
created: this.assetBundle.getMtime(name),
|
||||
lastModified: this.assetBundle.getMtime(name),
|
||||
size: data.byteLength,
|
||||
perm: "ro",
|
||||
|
@ -45,6 +47,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
|
|||
const data = this.assetBundle.readFileSync(name);
|
||||
return Promise.resolve({
|
||||
contentType: this.assetBundle.getMimeType(name),
|
||||
created: this.assetBundle.getMtime(name),
|
||||
lastModified: this.assetBundle.getMtime(name),
|
||||
size: data.byteLength,
|
||||
perm: "ro",
|
||||
|
|
Loading…
Reference in New Issue