-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
66 lines (61 loc) · 1.15 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
let $files = {};
// wponion-base.scss
$files[ 'node_modules/jQuery-QueryBuilder/dist/js/query-builder.standalone.min.js' ] = {
dist: 'assets/js/',
rename: 'query-builder.js',
};
$files[ 'node_modules/jQuery-QueryBuilder/dist/css/query-builder.default.min.css' ] = {
dist: 'assets/css/',
rename: 'query-builder.min.css',
};
$files[ 'src/js/addon.js' ] = {
dist: 'assets/js',
webpack: false,
babel: true,
combine_files: true,
watch: true,
sourcemaps: false,
uglify: true,
rename: 'addon.js',
};
$files[ 'src/scss/style.scss' ] = {
dist: 'assets/css',
scss: true,
minify: true,
combine_files: true,
watch: true,
sourcemaps: false,
rename: 'addon.css',
};
module.exports = {
files: $files,
config: {
combine_files: {
append: 'wponion-append',
prepend: 'wponion-prepend',
inline: 'wponion-inline',
},
webpack_dev_eval: {
devtool: 'eval',
mode: 'development',
target: 'node',
externals: {
jquery: 'jQuery'
},
output: {
filename: '[name].js',
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
options: {
presets: [ '@babel/env' ]
}
}
]
},
},
}
};