@@ -9,6 +9,7 @@ interface BuildOptions {
9
9
watch ?: boolean ;
10
10
watcher ?: string ;
11
11
supressSizes : boolean ;
12
+ baseHref ?: string ;
12
13
}
13
14
14
15
module . exports = Command . extend ( {
@@ -22,7 +23,8 @@ module.exports = Command.extend({
22
23
{ name : 'output-path' , type : 'Path' , default : 'dist/' , aliases : [ 'o' ] } ,
23
24
{ name : 'watch' , type : Boolean , default : false , aliases : [ 'w' ] } ,
24
25
{ name : 'watcher' , type : String } ,
25
- { name : 'suppress-sizes' , type : Boolean , default : false }
26
+ { name : 'suppress-sizes' , type : Boolean , default : false } ,
27
+ { name : 'base-href' , type : String , default : null } ,
26
28
] ,
27
29
28
30
run : function ( commandOptions : BuildOptions ) {
@@ -32,7 +34,7 @@ module.exports = Command.extend({
32
34
}
33
35
if ( commandOptions . target === 'production' ) {
34
36
commandOptions . environment = 'prod' ;
35
- }
37
+ }
36
38
}
37
39
38
40
var project = this . project ;
@@ -43,14 +45,16 @@ module.exports = Command.extend({
43
45
ui : ui ,
44
46
outputPath : commandOptions . outputPath ,
45
47
target : commandOptions . target ,
46
- environment : commandOptions . environment
48
+ environment : commandOptions . environment ,
49
+ baseHref : commandOptions . baseHref
47
50
} ) :
48
51
new WebpackBuild ( {
49
52
cliProject : project ,
50
53
ui : ui ,
51
54
outputPath : commandOptions . outputPath ,
52
55
target : commandOptions . target ,
53
56
environment : commandOptions . environment ,
57
+ baseHref : commandOptions . baseHref
54
58
} ) ;
55
59
56
60
return buildTask . run ( commandOptions ) ;
0 commit comments