File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,12 @@ module.exports = api => {
178
178
type : 'input' ,
179
179
default : '' ,
180
180
description : 'vue-webpack.tasks.build.name'
181
+ } ,
182
+ {
183
+ name : 'watch' ,
184
+ type : 'confirm' ,
185
+ default : false ,
186
+ description : 'vue-webpack.tasks.build.watch'
181
187
}
182
188
] ,
183
189
onBeforeRun : ( { answers, args } ) => {
@@ -186,6 +192,7 @@ module.exports = api => {
186
192
if ( answers . dest ) args . push ( '--dest' , answers . dest )
187
193
if ( answers . target ) args . push ( '--target' , answers . target )
188
194
if ( answers . name ) args . push ( '--port' , answers . name )
195
+ if ( answers . watch ) args . push ( '--watch' )
189
196
args . push ( '--dashboard' )
190
197
191
198
// Data
Original file line number Diff line number Diff line change 393
393
"wc" : " Web component" ,
394
394
"wc-async" : " Async web component"
395
395
},
396
- "name" : " Name for library or web-component mode (default: 'name' in package.json or entry filename)"
396
+ "name" : " Name for library or web-component mode (default: 'name' in package.json or entry filename)" ,
397
+ "watch" : " Watch for changes"
397
398
},
398
399
"inspect" : {
399
400
"description" : " Inspect the resolved webpack config" ,
You can’t perform that action at this time.
0 commit comments