-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
62 lines (58 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
60
61
62
/**
* Webpack Mix configuration for Vuetificator
* Please check the documentation for more information :
*
* @see https://laravel-mix.com/docs/6.0
*
*/
const mix = require('laravel-mix');
require('laravel-mix-purgecss');
const path = require('path');
/**
* Mix Aliases
*/
mix.alias({
'@' : path.join(__dirname, ''),
'$c' : path.join(__dirname, 'vue/components')
})
/**
* Mix SASS
*/
mix
.ts('view/adminhtml/web/ts/catalog/product/attributes.ts', 'view/adminhtml/web/js/catalog/product')
.vue({ version: 3 })
// .sass('view/adminhtml/web/scss/app.scss', 'view/adminhtml/web/css/')
.purgeCss({
extend: {
content: [
'./**/*.xml',
'./**/*.js',
'./**/*.html',
'./**/*.phtml',
'./**/*.php',
'./**/*.vue',
'./**/*.ts',
'./node_modules/element-plus/**/*.js',
'./node_modules/tinymce/**/*.js',
],
skippedContentGlobs: [
'**/element-plus/**/*.css'
],
defaultExtractor: (content) => content.match(/[A-z0-9-:%+<>.!?\/]+/g) || [],
safelist: {
standard: [
/^el-/,
/^is-/,
/^user-select/,
/^popper/,
/^fade-in/,
/^zoom-in/,
/^slide/,
],
deep: [/^el-/],
greedy: [/^el-/]
},
variables: false,
fontFace: false
}
});