-
Notifications
You must be signed in to change notification settings - Fork 0
/
bldrConfig.js
49 lines (42 loc) · 1.04 KB
/
bldrConfig.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
let drupal_modules = [
"./",
"./modules/bc_api_docs",
];
let css_config = [];
let sass_config = [];
let js_config = [];
let images_config = [];
drupal_modules.forEach((val, i) => {
css_config.push({
src: val + 'assets/src/css/**/*.css',
dest: val + 'assets/dist/css',
watch: [val + 'assets/src/css/**/*.css'],
});
sass_config.push({
src: val + 'assets/src/scss/*.scss',
dest: val + 'assets/dist/css',
watch: [val + 'assets/src/scss/**/*.css'],
});
js_config.push({
src: val + 'assets/src/js/**/*.js',
dest: val + 'assets/dist/js',
watch: [val + 'assets/src/js/**/*.js'],
});
images_config.push({
src: val + 'assets/src/images/*.{jpg,JPG,jpeg,JPEG,gif,png,svg}',
dest: val + 'assets/dist/images',
watch: [val + 'assets/src/images/**/*'],
});
});
module.exports = {
css: css_config,
sass: sass_config,
js: js_config,
images: [], //images_config
// --------------------- END BASIC CONFIG --------------------- //
rollup: {
outputOptions: {
format: 'iife'
}
}
}