Skip to content

Commit 456daa3

Browse files
committed
ensure directory exists
1 parent de043fc commit 456daa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Presets/Bootstrap.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Laravel\Ui\Presets;
44

5+
use Illuminate\Filesystem\Filesystem;
6+
57
class Bootstrap extends Preset
68
{
79
/**
@@ -39,6 +41,8 @@ protected static function updatePackageArray(array $packages)
3941
*/
4042
protected static function updateSass()
4143
{
44+
(new Filesystem)->ensureDirectoryExists(resource_path('sass'));
45+
4246
copy(__DIR__.'/bootstrap-stubs/_variables.scss', resource_path('sass/_variables.scss'));
4347
copy(__DIR__.'/bootstrap-stubs/app.scss', resource_path('sass/app.scss'));
4448
}

0 commit comments

Comments
 (0)