ea836a1fb5
bump vite from 2.9.12 to 3.1.0 add vite config to generate a dedicated chunk for maxgraph@core. It lets know the size the produced bundle in an external application and if tree shaking works. |
||
---|---|---|
.. | ||
src | ||
README.md | ||
favicon.svg | ||
index.html | ||
package.json | ||
tsconfig.json | ||
vite.config.js |
README.md
TypeScript project using the maxGraph npm package
Initialized from https://github.com/vitejs/vite/tree/v2.9.8/packages/create-vite/template-vanilla-ts
Do not forget to initialize all packages (you may also need to build the maxgraph@core package)
From the repository root, run
npm install
.
Run npm run dev
and go to http://localhost:5173/
If you want to bundle the application, run npm run build
and then run npm run preview
to access to a preview of the
bundle application.