@@ -56,15 +56,12 @@ module.exports = function () {
56
56
return 'src/assets/images/' + listTechs [ value ] . logo ;
57
57
} ) ;
58
58
59
- // Select partials relative to props.ui
60
- var uiFileKey = this . props . ui . key === 'ui-bootstrap' ? 'bootstrap' : this . props . ui . key ;
61
-
62
59
this . partialCopies = { } ;
63
60
64
- var navbarPartialSrc = 'src/components/navbar/__' + uiFileKey + '-navbar.html' ;
61
+ var navbarPartialSrc = 'src/components/navbar/__' + this . props . ui . key + '-navbar.html' ;
65
62
this . partialCopies [ navbarPartialSrc ] = 'src/components/navbar/navbar.html' ;
66
63
67
- var routerPartialSrc = 'src/app/main/__' + uiFileKey + '.html' ;
64
+ var routerPartialSrc = 'src/app/main/__' + this . props . ui . key + '.html' ;
68
65
if ( this . props . router . module !== null ) {
69
66
this . partialCopies [ routerPartialSrc ] = 'src/app/main/main.html' ;
70
67
}
@@ -107,7 +104,7 @@ module.exports = function () {
107
104
108
105
this . styleCopies = { } ;
109
106
110
- var styleAppSrc = 'src/app/__' + uiFileKey + '-index.' + this . props . cssPreprocessor . extension ;
107
+ var styleAppSrc = 'src/app/__' + this . props . ui . key + '-index.' + this . props . cssPreprocessor . extension ;
111
108
this . styleCopies [ styleAppSrc ] = 'src/app/index.' + this . props . cssPreprocessor . extension ;
112
109
113
110
// There is 2 ways of dealing with vendor styles
@@ -130,7 +127,7 @@ module.exports = function () {
130
127
}
131
128
132
129
if ( this . isVendorStylesPreprocessed && this . props . ui . name !== null ) {
133
- var styleVendorSource = 'src/app/__' + uiFileKey + '-vendor.' + this . props . cssPreprocessor . extension ;
130
+ var styleVendorSource = 'src/app/__' + this . props . ui . key + '-vendor.' + this . props . cssPreprocessor . extension ;
134
131
this . styleCopies [ styleVendorSource ] = 'src/app/vendor.' + this . props . cssPreprocessor . extension ;
135
132
}
136
133
} ;
0 commit comments