-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.coffee
52 lines (43 loc) · 1.04 KB
/
brunch-config.coffee
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
Waffel = require 'waffel'
filters = require './lib/filters'
helpers = require './lib/helpers'
exports.config =
paths:
watched: ['app']
files:
javascripts:
joinTo:
'js/app.js': /^app/
'js/vendor.js': /^(?!app\/)/
stylesheets:
joinTo:
'css/app.css': /^(vendor|app)/
server:
path: 'lib/server.coffee'
conventions:
assets: /(assets|vendor\/assets|font)/
plugins:
assetsmanager:
minTimeSpanSeconds: 10
copyTo:
'' : ['data/images']
autoReload:
enabled:
js: on
css: on
assets: off
overrides:
production:
optimize: true
sourceMaps: false
paths:
public: 'production'
hooks:
onCompile: (generatedFiles) ->
wfl = new Waffel
domain: 'http//example.com'
destinationFolder: 'production'
uglyUrls: true
filters: filters
helpers: helpers
wfl.init().then -> wfl.generate()