-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.mix.js
50 lines (47 loc) · 1.15 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const mix = require('laravel-mix');
require('mix-tailwindcss');
require('laravel-mix-purgecss');
mix.babelConfig({
plugins: [
[
'prismjs',
{
'languages': ['bash', 'css', 'diff', 'javascript', 'markup', 'php', 'sass', 'yaml']
}
]
]
});
mix.js('resources/js/app.js', 'public/js')
.extract([
'vue',
'prismjs',
'in-viewport',
'github-slugger',
'marky-deep-links',
'vue-scroll-indicator',
])
.postCss('resources/css/app.css', 'public/css')
.tailwind()
.options({
extractVueStyles: true,
})
.purgeCss({
extend: {
whitelist: [
'h1',
'h2',
'h3',
'h4',
'li',
'ul',
'code',
'table',
'blockquote',
'lg:max-h-(screen-22)',
'min-h-(screen-16)',
],
whitelistPatterns: [/carbon.*/],
whitelistPatternsChildren: [/^docs-index$/, /^markdown-body$/, /^token$/, /^pre$/]
}
})
.version();