Skip to content

Commit

Permalink
perf(app): Backport "only recreate the webpack conf when absolutely n…
Browse files Browse the repository at this point in the history
…ecessary" from Qv2
  • Loading branch information
rstoenescu committed Apr 23, 2021
1 parent 7e708fd commit 6d283e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/lib/quasar-conf-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class QuasarConfFile {

await this.compile()

if (this.webpackConfChanged) {
if (this.webpackConfChanged === true) {
opts.onBuildChange()
}
else {
Expand Down Expand Up @@ -942,7 +942,10 @@ class QuasarConfFile {
}

this.quasarConf = cfg
this.webpackConf = await require('./webpack')(cfg)

if (this.webpackConfChanged !== false) {
this.webpackConf = await require('./webpack')(cfg)
}
}
}

Expand Down

0 comments on commit 6d283e8

Please sign in to comment.