forked from lexon0011/IssueDemonstrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
29 lines (25 loc) · 842 Bytes
/
bundle.js
File metadata and controls
29 lines (25 loc) · 842 Bytes
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
// nodejs file
var Builder = require('systemjs-builder');
// optional constructor options
// sets the baseURL and loads the configuration file
var builder = new Builder('./static/', './static/app/systemConfig.js');
var config = {
defaultJSExtensions: true,
paths: {
"npm:*": "./node_modules/*",
'angular2/*': './node_modules/angular2/*',
'rxjs/*': './node_modules/rxjs/*',
"reflect-metadata": "./node_modules/reflect-metadata/Reflect"
}
}
function buildDone(){
console.log('Build complete');
}
function error(err){
console.log('Build error');
console.log(err);
}
// all in one build
console.log("Building bundle...");
builder.bundle('appbuild/**/*.js', 'static/bundle/app.bundle.js', { minify: false, sourceMaps: false, config: config })
.then(buildDone).catch(error);