-
Notifications
You must be signed in to change notification settings - Fork 6
/
webpack.mix.js
37 lines (31 loc) · 943 Bytes
/
webpack.mix.js
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
let mix = require('laravel-mix');
mix.webpackConfig({
stats: {
children: true
}
});
// base app js and css
// this builds public/css/app.css
mix.js('resources/assets/js/app.js', 'public/js')
// .js('resources/assets/js/swagger.js','public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.sourceMaps()
;
// build dark theme
// use the app.css above
mix.styles([
'public/css/app.css',
'resources/assets/css/custom-layout.css',
'resources/assets/css/dark-theme.css',
'resources/assets/css/sweetalert.css'
], 'public/css/dark.css')
;
// build light theme
mix.styles([
'public/css/app.css',
'resources/assets/css/custom-layout.css',
'resources/assets/css/light-theme.css',
'resources/assets/css/flatly-bootstrap.min.css', // this overrides with light theme styles from bootswatch flatly
'resources/assets/css/sweetalert.css'
], 'public/css/light.css')
;