Browse Source

Merge pull request #385 from robbieaverill/bugfix/hook-generated-files

Fix bug where generated file data was backwards in afterGenerating hooks
Shalvah 3 years ago
parent
commit
eb9a869ac0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Writing/Writer.php

+ 2 - 2
src/Writing/Writer.php

@@ -194,8 +194,8 @@ class Writer
             $this->generatedFiles['blade'] = realpath("{$outputPath}index.blade.php");
             $this->generatedFiles['blade'] = realpath("{$outputPath}index.blade.php");
             $assetsOutputPath = app()->get('path.public')."/vendor/scribe/";
             $assetsOutputPath = app()->get('path.public')."/vendor/scribe/";
         }
         }
-        $this->generatedFiles['assets']['js'] = realpath("{$assetsOutputPath}css");
-        $this->generatedFiles['assets']['css'] = realpath("{$assetsOutputPath}js");
+        $this->generatedFiles['assets']['js'] = realpath("{$assetsOutputPath}js");
+        $this->generatedFiles['assets']['css'] = realpath("{$assetsOutputPath}css");
         $this->generatedFiles['assets']['images'] = realpath("{$assetsOutputPath}images");
         $this->generatedFiles['assets']['images'] = realpath("{$assetsOutputPath}images");
     }
     }