forked from ICTASL/MyHealthApp-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
29 lines (27 loc) · 1.11 KB
/
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
let mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for your application, as well as bundling up your JS files.
|
*/
mix
.js('src/main/resources/js/alerts.js', 'src/main/resources/static/js/alerts.js')
.js('src/main/resources/js/Case.js', 'src/main/resources/static/js/Case.js')
.js('src/main/resources/js/dashboard.js', 'src/main/resources/static/js/dashboard.js')
.sass('src/main/resources/css/app.sass', 'src/main/resources/static/css/app.css')
.options({
processCssUrls: false,
postCss: [ tailwindcss('covid-config.js') ],
})
.purgeCss({
enabled: false,
folders: ['/src/main/resources/css/','/src/main/resources/templates/'],
extensions: ['html'],
});