@@ -17,6 +17,7 @@ export interface BuildOptions {
17
17
i18nFormat ?: string ;
18
18
locale ?: string ;
19
19
deployUrl ?: string ;
20
+ disableCacheBust ?: boolean ;
20
21
}
21
22
22
23
const BuildCommand = Command . extend ( {
@@ -31,21 +32,22 @@ const BuildCommand = Command.extend({
31
32
default : 'development' ,
32
33
aliases : [ 't' , { 'dev' : 'development' } , { 'prod' : 'production' } ]
33
34
} ,
34
- { name : 'environment' , type : String , default : '' , aliases : [ 'e' ] } ,
35
- { name : 'output-path' , type : 'Path' , default : null , aliases : [ 'o' ] } ,
36
- { name : 'watch' , type : Boolean , default : false , aliases : [ 'w' ] } ,
37
- { name : 'watcher' , type : String } ,
38
- { name : 'suppress-sizes' , type : Boolean , default : false } ,
39
- { name : 'base-href' , type : String , default : null , aliases : [ 'bh' ] } ,
40
- { name : 'aot' , type : Boolean , default : false } ,
41
- { name : 'sourcemap' , type : Boolean , default : true , aliases : [ 'sm' ] } ,
42
- { name : 'vendor-chunk' , type : Boolean , default : true } ,
43
- { name : 'verbose' , type : Boolean , default : false } ,
44
- { name : 'progress' , type : Boolean , default : true } ,
45
- { name : 'i18n-file' , type : String , default : null } ,
46
- { name : 'i18n-format' , type : String , default : null } ,
47
- { name : 'locale' , type : String , default : null } ,
48
- { name : 'deploy-url' , type : String , default : null , aliases : [ 'd' ] }
35
+ { name : 'environment' , type : String , default : '' , aliases : [ 'e' ] } ,
36
+ { name : 'output-path' , type : 'Path' , default : null , aliases : [ 'o' ] } ,
37
+ { name : 'watch' , type : Boolean , default : false , aliases : [ 'w' ] } ,
38
+ { name : 'watcher' , type : String } ,
39
+ { name : 'suppress-sizes' , type : Boolean , default : false } ,
40
+ { name : 'base-href' , type : String , default : null , aliases : [ 'bh' ] } ,
41
+ { name : 'aot' , type : Boolean , default : false } ,
42
+ { name : 'sourcemap' , type : Boolean , default : true , aliases : [ 'sm' ] } ,
43
+ { name : 'vendor-chunk' , type : Boolean , default : true } ,
44
+ { name : 'verbose' , type : Boolean , default : false } ,
45
+ { name : 'progress' , type : Boolean , default : true } ,
46
+ { name : 'i18n-file' , type : String , default : null } ,
47
+ { name : 'i18n-format' , type : String , default : null } ,
48
+ { name : 'locale' , type : String , default : null } ,
49
+ { name : 'deploy-url' , type : String , default : null , aliases : [ 'd' ] } ,
50
+ { name : 'disable-cache-bust' , type : Boolean , default : false , aliases : [ 'dcb' ] , description : 'Disable webpack\'s [chunkhash] cache bust feature in prod build.' }
49
51
] ,
50
52
51
53
run : function ( commandOptions : BuildOptions ) {
0 commit comments