forked from jfparadis/requirejs-tpl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.js
36 lines (27 loc) · 1.01 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
36
// See https://github.com/jrburke/r.js/blob/master/build/example.build.js
({
// Assume your scripts are in a subdirectory under this path.
appDir: 'example',
// By default, all modules are located relative to this path.
baseUrl: 'scripts',
// Location of the runtime config be read for the build.
mainConfigFile: 'example/scripts/main.js',
//The directory path to save the output.
dir: 'example-build',
// If you do not want uglifyjs optimization.
optimize: 'none',
// Inlines any text! dependencies, to avoid separate requests.
inlineText: true,
// Modules to stub out in the optimized file.
stubModules: ['underscore', 'text', 'tpl'],
// Files combined into a build layer will be removed from the output folder.
removeCombined: true,
// This option will turn off the auto-preservation.
preserveLicenseComments: false,
//List the modules that will be optimized.
modules: [
{
name: "main" // main config file
}
]
})