This example shows how to integrate Nutrient for Web into a TypeScript app built with Vite.
Clone the repo:
git clone https://github.com/PSPDFKit/nutrient-web-examples
cd nutrient-web-examples/examples/typescript-viteInstall the project dependencies:
npm installWe are ready to launch the app! 🎉
npm run devYou can now open http://localhost:5173 in your browser and enjoy!
To create a production build of the app and serve it:
npm run build
npm run previewYou can now preview your build at http://localhost:4173 in your browser.
This example demonstrates how to integrate Nutrient Web SDK in a TypeScript environment with correct type definitions. The integration can be found in the main TypeScript files in the src/ directory.
This software is licensed under a modified BSD license.
Please ensure you have signed our CLA so that we can accept your contributions.
Nutrient offers support for customers with an active SDK license via https://www.nutrient.io/support/request/
Are you evaluating our SDK? That's great, we're happy to help out! To make sure this is fast, please use a work email and have someone from your company fill out our sales form: https://www.nutrient.io/sales/