@@ -219,7 +219,7 @@ public function __invoke($entrypoints, $buildDirectory = null)
219
219
220
220
$ tags ->push ($ this ->makeTagForChunk (
221
221
$ partialManifest ->keys ()->first (),
222
- asset ("{$ buildDirectory }/ {$ css }" ),
222
+ $ this -> assetPath ("{$ buildDirectory }/ {$ css }" ),
223
223
$ partialManifest ->first (),
224
224
$ manifest
225
225
));
@@ -228,7 +228,7 @@ public function __invoke($entrypoints, $buildDirectory = null)
228
228
229
229
$ tags ->push ($ this ->makeTagForChunk (
230
230
$ entrypoint ,
231
- asset ("{$ buildDirectory }/ {$ chunk ['file ' ]}" ),
231
+ $ this -> assetPath ("{$ buildDirectory }/ {$ chunk ['file ' ]}" ),
232
232
$ chunk ,
233
233
$ manifest
234
234
));
@@ -238,7 +238,7 @@ public function __invoke($entrypoints, $buildDirectory = null)
238
238
239
239
$ tags ->push ($ this ->makeTagForChunk (
240
240
$ partialManifest ->keys ()->first (),
241
- asset ("{$ buildDirectory }/ {$ css }" ),
241
+ $ this -> assetPath ("{$ buildDirectory }/ {$ css }" ),
242
242
$ partialManifest ->first (),
243
243
$ manifest
244
244
));
@@ -487,7 +487,19 @@ public function asset($asset, $buildDirectory = null)
487
487
488
488
$ chunk = $ this ->chunk ($ this ->manifest ($ buildDirectory ), $ asset );
489
489
490
- return asset ($ buildDirectory .'/ ' .$ chunk ['file ' ]);
490
+ return $ this ->assetPath ($ buildDirectory .'/ ' .$ chunk ['file ' ]);
491
+ }
492
+
493
+ /**
494
+ * Generate an asset path for the application.
495
+ *
496
+ * @param string $path
497
+ * @param bool|null $secure
498
+ * @return string
499
+ */
500
+ protected function assetPath ($ path , $ secure = null )
501
+ {
502
+ return asset ($ path , $ secure );
491
503
}
492
504
493
505
/**
0 commit comments