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