-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
69 lines (69 loc) · 1.38 KB
/
config.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
63
64
65
66
67
68
69
let $files = {};
$files[ 'src/scss/selectize.scss' ] = {
dist: 'vendors/selectize/',
combine_files: true,
scss: true,
autoprefixer: true,
minify: true,
rename: 'selectize.css',
watch: true,
};
$files[ 'src/js/selectize.js' ] = {
dist: 'vendors/selectize/',
combine_files: true,
uglify: true,
rename: 'selectize.js',
watch: true,
};
$files[ 'src/scss/flatpickr.scss' ] = {
dist: 'vendors/flatpickr/',
combine_files: true,
scss: true,
autoprefixer: true,
minify: true,
rename: 'style.css',
watch: true,
};
$files[ 'src/js/flatpickr.js' ] = {
dist: 'vendors/flatpickr/',
combine_files: true,
uglify: true,
rename: 'script.js',
watch: true,
};
$files[ 'src/scss/pickr/pickr.scss' ] = {
dist: 'vendors/pickr/',
combine_files: true,
scss: true,
autoprefixer: true,
minify: true,
rename: 'pickr.css',
watch: true,
};
module.exports = {
files: $files,
config: {
combine_files: {
append: 'wponion-append',
prepend: 'wponion-prepend',
inline: 'wponion-inline',
},
webpack_pickr: {
mode: 'production',
output: { filename: '[name].js', },
target: 'node',
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
options: {
presets: [ '@babel/preset-env' ],
plugins: [ 'module:@babel/plugin-proposal-class-properties' ]
}
}
]
},
}
}
};