We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b462190 commit 2f2ec3eCopy full SHA for 2f2ec3e
packages/framework/src/Framework/Actions/PreBuildTasks/TransferMediaAssets.php
@@ -4,6 +4,7 @@
4
5
namespace Hyde\Framework\Actions\PreBuildTasks;
6
7
+use Hyde\Facades\Config;
8
use Hyde\Facades\Filesystem;
9
use Hyde\Support\Filesystem\MediaFile;
10
use Hyde\Framework\Features\BuildTasks\PreBuildTask;
@@ -23,6 +24,10 @@ public function handle(): void
23
24
$this->skip("No media files to transfer.\n");
25
}
26
27
+ if (Config::getBool('hyde.load_app_styles_from_cdn') && MediaFile::files() === ['app.css']) {
28
+ $this->skip("No media files to transfer, using CDN.\n");
29
+ }
30
+
31
$this->withProgressBar(MediaFile::all(), function (MediaFile $file): void {
32
$sitePath = $file->getOutputPath();
33
$this->needsParentDirectory($sitePath);
0 commit comments