@@ -32,7 +32,7 @@ module.exports = function (grunt) {
32
32
build : {
33
33
files : {
34
34
'<%= builddir %>/ui-router-ng2.min.js' : [ '<banner:meta.banner>' , '<%= builddir %>/ui-router-ng2.js' ] ,
35
- '<%= builddir %>/<%= pkg.name %>. min.js' : [ '<banner:meta.banner>' , '<%= builddir %>/<%= pkg.name %> .js' ] ,
35
+ '<%= builddir %>/angular-ui-router. min.js' : [ '<banner:meta.banner>' , '<%= builddir %>/angular-ui-router .js' ] ,
36
36
'<%= builddir %>/ng1/stateEvents.min.js' : [ '<banner:meta.banner>' , '<%= builddir %>/ng1/stateEvents.js' ]
37
37
}
38
38
}
@@ -42,21 +42,13 @@ module.exports = function (grunt) {
42
42
entry : files . ng1CommonJsEntrypoint ,
43
43
output : {
44
44
path : '<%= builddir %>' ,
45
- filename : '<%= pkg.name %> .js' ,
45
+ filename : 'angular-ui-router .js' ,
46
46
library : 'ui.router' ,
47
47
libraryTarget : 'umd'
48
48
} ,
49
- module : {
50
- loaders : [ ]
51
- } ,
49
+ module : { loaders : [ ] } ,
52
50
externals : [
53
- {
54
- angular : {
55
- root : 'angular' ,
56
- commonjs2 : 'angular' ,
57
- commonjs : 'angular'
58
- }
59
- }
51
+ { angular : { root : 'angular' , commonjs2 : 'angular' , commonjs : 'angular' } }
60
52
]
61
53
} ,
62
54
ng2 : {
@@ -67,9 +59,7 @@ module.exports = function (grunt) {
67
59
library : 'uiRouter' ,
68
60
libraryTarget : 'umd'
69
61
} ,
70
- module : {
71
- loaders : [ ]
72
- } ,
62
+ module : { loaders : [ ] } ,
73
63
externals : [ {
74
64
'angular2/core' : { root : [ 'ng' , 'core' ] , commonjs : 'angular2/core' , commonjs2 : 'angular2/core' , amd : 'angular2/core' } ,
75
65
'angular2/common' : { root : [ 'ng' , 'common' ] , commonjs : 'angular2/common' , commonjs2 : 'angular2/common' , amd : 'angular2/common' }
0 commit comments