File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class Bootstrap extends Preset
14
14
public static function install ()
15
15
{
16
16
static ::updatePackages ();
17
+ static ::updateWebpackConfiguration ();
17
18
static ::updateSass ();
18
19
static ::updateBootstrapping ();
19
20
static ::removeNodeModules ();
@@ -31,9 +32,21 @@ protected static function updatePackageArray(array $packages)
31
32
'bootstrap ' => '^4.0.0 ' ,
32
33
'jquery ' => '^3.2 ' ,
33
34
'popper.js ' => '^1.12 ' ,
35
+ 'sass ' => '^1.15.2 ' ,
36
+ 'sass-loader ' => '^8.0.0 ' ,
34
37
] + $ packages ;
35
38
}
36
39
40
+ /**
41
+ * Update the Webpack configuration.
42
+ *
43
+ * @return void
44
+ */
45
+ protected static function updateWebpackConfiguration ()
46
+ {
47
+ copy (__DIR__ .'/bootstrap-stubs/webpack.mix.js ' , base_path ('webpack.mix.js ' ));
48
+ }
49
+
37
50
/**
38
51
* Update the Sass files for the application.
39
52
*
Original file line number Diff line number Diff line change
1
+ const mix = require ( 'laravel-mix' ) ;
2
+
3
+ /*
4
+ |--------------------------------------------------------------------------
5
+ | Mix Asset Management
6
+ |--------------------------------------------------------------------------
7
+ |
8
+ | Mix provides a clean, fluent API for defining some Webpack build steps
9
+ | for your Laravel application. By default, we are compiling the Sass
10
+ | file for the application as well as bundling up all the JS files.
11
+ |
12
+ */
13
+
14
+ mix . js ( 'resources/js/app.js' , 'public/js' )
15
+ . sass ( 'resources/sass/app.scss' , 'public/css' ) ;
You can’t perform that action at this time.
0 commit comments