-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.build.js
70 lines (61 loc) · 2.12 KB
/
app.build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* see https://github.com/jrburke/r.js/blob/master/build/example.build.js
*/
({
appDir: "src",
baseUrl: "scripts/",
dir: "build",
//See https://github.com/mishoo/UglifyJS for the possible values.
// Comment out the optimize line if you want
// the code minified by UglifyJS
optimize: "none",
// optimize: "uglify",
uglify: {
beautify: true,
index : 0,
max_line_len : 120
},
paths: {
requirejs: 'lib/requirejs/require-1.0.7',
order: 'lib/requirejs/order-1.0.5',
text: 'lib/requirejs/text-1.0.7',
jsrender: 'lib/jsviews/jsrender-1.0pre',
jsobservable: 'lib/jsviews/jsobservable-1.0pre',
jsviews: 'lib/jsviews/jsviews-1.0pre',
jquery: 'lib/jquery/jquery-1.7.1',
underscore: 'lib/utils/underscore-1.2.3',
date: 'lib/utils/easydate-0.2.4'
},
optimizeAllPluginResources: false,
modules: [
{
// The bootstrap module is common javascript and resources for all pages.
// It should include:
// - jQuery
// - RequireJS (AMD)
// - RequireJS plugins
// - basic logging
// - the copyright module, so that the minified code has a copyright.
name: "bootstrap"
},
{
name: "coffee/main",
exclude: [ 'jquery', 'utils/log', 'text', 'jsrender', 'text!coffee/views/_item.html', 'text!coffee/views/index.html']
},
// {
// name: 'coffee/loader',
// exclude: [ 'jquery', 'utils/log', 'text', 'jsrender']
// },
{
name: 'bootstrap-html',
exclude: [ 'text', 'utils/log' ]
}
],
//Allow CSS optimizations. Allowed values:
//- "standard": @import inlining, comment removal and line returns.
//Removing line returns may have problems in IE, depending on the type
//of CSS.
//- "standard.keepLines": like "standard" but keeps line returns.
//- "none": skip CSS optimizations.
optimizeCss: "standard",
})