-
Notifications
You must be signed in to change notification settings - Fork 36
/
bundle.config.js
51 lines (50 loc) · 1.64 KB
/
bundle.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
var transformHelper = require('../../index.js').transformHelper;
module.exports = {
bundle: {
'ordered-bundle': {
scripts: [
{
src: './vendor/second.js',
minSrc: './vendor/second.min.js'
},
'./a/*.coffee',
'./content/**/*.coffee',
'./content/**/*.js'
],
styles: [
{
src: './vendor/second.css',
minSrc: './vendor/second.min.css'
},
'./a/*.less',
'./content/**/*.less',
'./content/**/*.css'
],
options: {
order: {
scripts: [
'**/always-first.js', // from /content
'**/second*.js', // depending on env, this could be streaming min or non-min file so use trailing *
'**/third.js', // compiled from third.coffee
'**/fourth.js', // compiled from fourth.coffee
'!**/always-last.js', // everything else except always-last.js
'**/always-last.js' // from /content
],
styles: [
'**/always-first.css', // from /content
'**/second*.css', // depending on env, this could be streaming min or non-min file so use trailing *
'**/third.css', // compiled from third.less
'**/fourth.css', // compiled from fourth.less
'!**/always-last.css', // everything else except always-last.css
'**/always-last.css' // from /content
]
},
useMin: 'production',
transforms: {
scripts: transformHelper.coffee(),
styles: transformHelper.less()
}
}
}
}
};