Skip to content

Commit

Permalink
fix: workaround for nuxt/cli#193
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrdtr committed Sep 20, 2023
1 parent ebdde94 commit 156fda1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ export default defineNuxtConfig({
}
},
hooks: {
'build:done': mergePublicAssets
/* https://github.com/nuxt/cli/issues/193 */
close: (nuxt) => {
if (!nuxt.options._prepare) {
process.exit()
}
},
'build:done': mergePublicAssets,
},
pwa: {
workbox: {
Expand Down

0 comments on commit 156fda1

Please sign in to comment.