mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: File path
This commit is contained in:
parent
d980a712c5
commit
afb39c8b22
@ -215,7 +215,16 @@ class DeferredRequirements implements TemplateGlobalProvider
|
|||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = WebpackTemplateProvider::toPublicPath($url);
|
$projectName = WebpackTemplateProvider::projectName();
|
||||||
|
$path = Path::join(
|
||||||
|
Director::publicFolder(),
|
||||||
|
RESOURCES_DIR,
|
||||||
|
$projectName,
|
||||||
|
'client',
|
||||||
|
'dist',
|
||||||
|
(strpos($url, '.js') ? 'js' : 'css'),
|
||||||
|
$url
|
||||||
|
);
|
||||||
|
|
||||||
$absolutePath = Director::getAbsFile($path);
|
$absolutePath = Director::getAbsFile($path);
|
||||||
$hash = sha1_file($absolutePath);
|
$hash = sha1_file($absolutePath);
|
||||||
|
Loading…
Reference in New Issue
Block a user