-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.mjs
32 lines (31 loc) · 921 Bytes
/
build.mjs
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
import pipe from '../../../builder/lib/pipe.mjs';
import images from '../../../builder/tasks/images.mjs';
import stylesheets from '../../../builder/tasks/stylesheets.mjs';
import javascripts from '../../../builder/tasks/javascripts.mjs';
pipe({
'dist': 'dist',
'pipe': ['img', 'css', 'js'],
'tasks': {
'img': {
'fn': images,
'config': {
'source': ['Resources/Assets/img/**/*.+(png|jpg|jpeg|gif|svg|webp)'],
'target': 'img'
}
},
'css': {
'fn': stylesheets,
'config': {
'source': ['Resources/Assets/scss/*.+(sass|scss)'],
'target': 'css'
}
},
'js': {
'fn': javascripts,
'config': {
'source': ['Resources/Assets/js/*.+(js|mjs)'],
'target': 'js'
}
}
}
});