@eslym/vite-plugin-express-app
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Express App in Vite

npm i -D @eslym/vite-plugin-express-app
yarn add -D @eslym/vite-plugin-express-app

express only

// vite.config.ts
import { defineConfig } from "vite";
import { viteExpressApp } from "@eslym/vite-plugin-express-app";
import { app as yourExpressApp } from "src/app.ts";

export default defineConfig({
    plugins: [
        //...
        viteExpressApp(yourExpressApp),
    ],
});

with express-ws

// vite.config.ts
import { defineConfig } from "vite";
import { viteExpressApp } from "@eslym/vite-plugin-express-app";
import {
    app as yourExpressApp,
    getWss /* getWss from express-ws */,
} from "src/app.ts";

export default defineConfig({
    plugins: [
        //...
        viteExpressApp(yourExpressApp, getWss()),
    ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @eslym/vite-plugin-express-app

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

3.29 kB

Total Files

6

Last publish

Collaborators

  • 0nepeop1e