mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-17 04:40:03 -06:00
17 lines
341 B
JavaScript
17 lines
341 B
JavaScript
module.exports = class TimeFixPlugin {
|
|
constructor (timefix = 11000) {
|
|
this.timefix = timefix
|
|
}
|
|
|
|
apply (compiler) {
|
|
compiler.plugin('watch-run', (watching, callback) => {
|
|
watching.startTime += this.timefix
|
|
callback()
|
|
})
|
|
|
|
compiler.plugin('done', stats => {
|
|
stats.startTime -= this.timefix
|
|
})
|
|
}
|
|
}
|