-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.js
35 lines (31 loc) · 1.06 KB
/
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
({
baseUrl: 'osv',
out: 'public/dashboard_static/out.js',
name: 'App',
//Exclude jquery from the built lib,
//since it is used in the index.html
//directly too, and demonstrates
//async loading.
//Comment this line out to get
//minified content.
optimize: 'none',
//Uncomment this line if you want the
//built file to use eval with sourceURL
//for each module built into the built file.
//This can help make debugging of the built file
//a little more pleasant in the debugger.
//Note however that it only seems to work well
//in Chrome at the moment. Firefox may be confused
//by the double eval going on.
//Also, only use it when not doing minification,
//just for debugging only. It also may cause
//problems if you are using IE conditional comments
//in JavaScript
useSourceUrl: true,
//Instruct the r.js optimizer to
//convert commonjs-looking code
//to AMD style, which is needed for
//the optimizer to properly trace
//dependencies.
cjsTranslate: true
})