-
Notifications
You must be signed in to change notification settings - Fork 0
/
aureliafile.js
50 lines (46 loc) · 1.08 KB
/
aureliafile.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
var cli = require('aurelia-cli');
var config = {
js: {
"dist/app-bundle": {
modules: [
'*',
'aurelia-bootstrapper',
'aurelia-fetch-client',
'aurelia-router',
'aurelia-animator-css',
'github:aurelia/templating-binding',
'github:aurelia/templating-resources',
'github:aurelia/templating-router',
'github:aurelia/loader-default',
'github:aurelia/history-browser'
],
options: {
inject: true
}
}
},
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: true
}
}
}
};
cli.command('bundle', config);
cli.command('unbundle', config);
/*
If you don't like your original `index.html` to be modified and want to have a new index file instead with the template bundle injection, use a bundle configuration like this:
template: {
"dist/app-bundle": {
pattern: 'dist/*.html',
options: {
inject: {
indexFile: 'index.html',
destFile: 'dest_index.html'
}
}
}
}
*/