Skip to content

Commit

Permalink
fix(nuxt): add all target names when adding vite plugin (#21332)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Jan 26, 2024
1 parent f59ceea commit f7f745f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nuxt/src/generators/init/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ export function addPlugin(tree: Tree) {
nxJson.plugins.push({
plugin: '@nx/vite/plugin',
options: {
buildTargetName: 'build',
previewTargetName: 'preview',
testTargetName: 'test',
serveTargetName: 'serve',
serveStaticTargetName: 'serve-static',
},
});
}
Expand Down

0 comments on commit f7f745f

Please sign in to comment.