File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 10
10
"production" : " mix --production"
11
11
},
12
12
"devDependencies" : {
13
+ "@popperjs/core" : " ^2.10.2" ,
13
14
"axios" : " ^0.21" ,
15
+ "bootstrap" : " ^5.1.3" ,
14
16
"laravel-mix" : " ^6.0.6" ,
15
17
"lodash" : " ^4.17.19" ,
16
- "postcss" : " ^8.1.14"
18
+ "postcss" : " ^8.1.14" ,
19
+ "resolve-url-loader" : " ^5.0.0" ,
20
+ "sass" : " ^1.32.11" ,
21
+ "sass-loader" : " ^11.0.1"
17
22
}
18
23
}
Original file line number Diff line number Diff line change 1
1
window . _ = require ( 'lodash' ) ;
2
2
3
+ try {
4
+ require ( 'bootstrap' ) ;
5
+ } catch ( e ) { }
6
+
3
7
/**
4
8
* We'll load the axios HTTP library which allows us to easily issue requests
5
9
* to our Laravel back-end. This library automatically handles sending the
Original file line number Diff line number Diff line change 16
16
Route::get ('/ ' , function () {
17
17
return view ('welcome ' );
18
18
});
19
+
20
+ Auth::routes ();
21
+
22
+ Route::get ('/home ' , [App \Http \Controllers \HomeController::class, 'index ' ])->name ('home ' );
Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ const mix = require('laravel-mix');
6
6
|--------------------------------------------------------------------------
7
7
|
8
8
| Mix provides a clean, fluent API for defining some Webpack build steps
9
- | for your Laravel applications . By default, we are compiling the CSS
9
+ | for your Laravel application . By default, we are compiling the Sass
10
10
| file for the application as well as bundling up all the JS files.
11
11
|
12
12
*/
13
13
14
14
mix . js ( 'resources/js/app.js' , 'public/js' )
15
- . postCss ( 'resources/css/app.css' , 'public/css' , [
16
- //
17
- ] ) ;
15
+ . sass ( 'resources/sass/app.scss' , 'public/css' )
16
+ . sourceMaps ( ) ;
You can’t perform that action at this time.
0 commit comments