Skip to content

vite build generates only the server component when VitePluginNode is present in the vite config #128

Description

@mrckzgl

If I have the following plugin added to the vite config:

    VitePluginNode({
      adapter: 'express',
      appPath: "./src/server.ts",
      exportName: "viteNodeApp",
      initAppOnBoot: true,
    }),

running vite build only builds the server component under src/server.ts. The frontend is not built at all. When removing VitePluginNode, however it is built.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions