diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-19 21:23:31 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-20 21:41:50 +0200 |
commit | beda5138e018d9a853d57bd7274a35c21fa5c366 (patch) | |
tree | 3f6ff98c917db824a850c85eee7fbd76021adc27 /subprojects/frontend/build.gradle | |
parent | feat(frontend): add PWA manifest (diff) | |
download | refinery-beda5138e018d9a853d57bd7274a35c21fa5c366.tar.gz refinery-beda5138e018d9a853d57bd7274a35c21fa5c366.tar.zst refinery-beda5138e018d9a853d57bd7274a35c21fa5c366.zip |
fix(frontend): destroy service worker in dev mode
If the application is run in both production and development mode on the
same domain, make sure to clean up the production service worker.
Diffstat (limited to 'subprojects/frontend/build.gradle')
-rw-r--r-- | subprojects/frontend/build.gradle | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subprojects/frontend/build.gradle b/subprojects/frontend/build.gradle index da237411..dd50860c 100644 --- a/subprojects/frontend/build.gradle +++ b/subprojects/frontend/build.gradle | |||
@@ -93,6 +93,10 @@ tasks.register('serveFrontend', RunYarn) { | |||
93 | description = 'Start a Vite dev server with hot module replacement.' | 93 | description = 'Start a Vite dev server with hot module replacement.' |
94 | } | 94 | } |
95 | 95 | ||
96 | tasks.named('clean') { | ||
97 | delete 'dev-dist' | ||
98 | } | ||
99 | |||
96 | sonarqube.properties { | 100 | sonarqube.properties { |
97 | properties['sonar.sources'] += ['src'] | 101 | properties['sonar.sources'] += ['src'] |
98 | property 'sonar.nodejs.executable', "${frontend.nodeInstallDirectory.get()}/bin/node" | 102 | property 'sonar.nodejs.executable', "${frontend.nodeInstallDirectory.get()}/bin/node" |