Skip to content

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

@mrckzgl

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.

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