Skip to content

Commit

Permalink
ensure directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 8, 2020
1 parent de043fc commit 456daa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Presets/Bootstrap.php
Expand Up @@ -2,6 +2,8 @@

namespace Laravel\Ui\Presets;

use Illuminate\Filesystem\Filesystem;

class Bootstrap extends Preset
{
/**
Expand Down Expand Up @@ -39,6 +41,8 @@ protected static function updatePackageArray(array $packages)
*/
protected static function updateSass()
{
(new Filesystem)->ensureDirectoryExists(resource_path('sass'));

copy(__DIR__.'/bootstrap-stubs/_variables.scss', resource_path('sass/_variables.scss'));
copy(__DIR__.'/bootstrap-stubs/app.scss', resource_path('sass/app.scss'));
}
Expand Down

0 comments on commit 456daa3

Please sign in to comment.