-
Notifications
You must be signed in to change notification settings - Fork 0
/
brunch-config.coffee
47 lines (45 loc) · 1.14 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
if process.env.production
analytics_provider = 'GoogleUniversal'
else
analytics_provider = 'Console'
exports.config =
modules:
definition: false
wrapper: false
plugins:
assetsmanager:
copyTo:
'/': ['app/modules/**/*.html', 'app/**/*.json']
replace:
encoding: 'utf8'
log: true
mappings:
'analytics_provider': analytics_provider
paths: [
'public/js/app.js'
]
replacePrefix: '{!'
replaceSuffix: '!}'
sass:
options:
includePaths: [
'bower_components/bourbon/app/assets/stylesheets',
'bower_components/neat/app/assets/stylesheets'
]
files:
javascripts:
joinTo:
'js/app.js': /^bower_components|app/
order:
before: [
/^bower_components(\/|\\)angular(\/|\\)angular.js$/,
/^app(\/|\\)modules(\/|\\)(.+)(\/|\\)(.+)-module.js$/,
/^app(\/|\\)modules(\/|\\)(.+)(\/|\\)(.+).js$/,
'app/app.js'
]
stylesheets:
defaultExtension: 'scss'
joinTo:
'css/app.css': /^(app|vendor|bower_components)/
templates:
joinTo: 'js/app.js'