-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.mix.js
26 lines (25 loc) · 921 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
let mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
mix
.js('resources/js/app.js', 'js/app.js')
.combine([
'resources/js/plugins/jcarousel.min.js',
'resources/js/plugins/jcarousel.control.js',
'resources/js/plugins/jcarousel.autoscroll.js',
'resources/js/plugins/jcarousel.pagination.js',
], 'public/js/jcarousel.js')
.combine([
'resources/js/plugins/imglazyload.js',
'resources/js/plugins/magnific-popup.min.js',
], 'public/js/plugins.js')
.combine(['resources/js/plugins/jquery.min.js'], 'public/js/jquery.js')
.postCss('resources/css/app.css', 'css/app.css', [
tailwindcss('tailwind.config.js')
])
.purgeCss({
whitelistPatterns: [
/amazon/, /apple/, /google/, /mobi-asin/, /barnesnoble/, /bookfusion/, /uri/, /mfp/
]
})
.version();