-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
41 lines (33 loc) · 1.06 KB
/
webpack.mix.js
File metadata and controls
41 lines (33 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Frontend React App Compiler Settings
|--------------------------------------------------------------------------
| This line of code compile all backend CSS/JS and other resources.
|
*/
// mix.js(
// 'resources/Frontend/react/app.js',
// 'public/Frontend/react')
// .react()
// .sass(
// 'resources/Frontend/react/assets/sass/app.scss',
// 'public/Frontend/react/css');
/*
|--------------------------------------------------------------------------
| Backend Compiler Settings
|--------------------------------------------------------------------------
| This line of code compile all backend CSS/JS and other resources.
|
*/
mix.sass(
'resources/Backend/sass/app.scss',
'public/Backend/css')
.options({
processCssUrls: false
})
.sourceMaps(true, 'source-map');
if (mix.inProduction()) {
mix.version();
}
mix.browserSync('http://127.0.0.1:8000/');