-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrunch-config.js
More file actions
executable file
·88 lines (86 loc) · 1.93 KB
/
brunch-config.js
File metadata and controls
executable file
·88 lines (86 loc) · 1.93 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
var path,
slice = [].slice;
path = require('path');
exports.config = {
conventions: {
assets: /app\/assets\//
},
paths: {
"public": 'public',
watched: ['app']
},
npm: {
enabled: true,
},
files: {
javascripts: {
joinTo: {
'js/app.js': '**/*.js'
}
},
stylesheets: {
joinTo: {
'css/style_ie.css': 'app/stylesheets/style_ie.scss',
'css/style.css': 'app/stylesheets/style.scss'
}
}
},
plugins: {
babel: {
presets: ['es2015'],
plugins: ['es6-promise']
},
sass: {
mode: 'native',
options: {
includePaths: ['node_modules/normalize.css']
},
precision: 8,
sourceMapEmbed: true
},
postcss: {
processors: require('autoprefixer')(['last 8 versions'])
},
"static": {
pathTransform: function(f) {
return path.relative('pages', f);
},
processors: [
require('html-brunch-static')({
partials: /\/partials\//,
layouts: /\/layouts\//,
handlebars: {
enableProcessor: true,
helpers: {
ifEq: function(a, b, opts) {
if (a === b) {
return opts.fn(this);
} else {
return opts.inverse(this);
}
},
ifEqDebug: function(a, b, opts) {
console.log("a: '" + a + "'");
console.log("b: '" + b + "'");
if (a === b) {
return opts.fn(this);
} else {
return opts.inverse(this);
}
},
log: function() {
var msg;
msg = 1 <= arguments.length ? slice.call(arguments, 0) : [];
return console.log(msg);
}
}
}
})
]
}
},
server: {
port: 7777,
hostname: '0.0.0.0'
}
};