@jpapini/vite-config

1.1.11 • Public • Published

Vite.js configuration

Custom Vite.js configuration for TypeScript libraries.

How to use

  1. Install the package and its required peer dependencies:
pnpm add -D @jpapini/vite-config vite
  1. Create a vite.config.js file with the following content:
import url from 'node:url';

import { createLibraryViteConfig } from '@jpapini/vite-config';

export default createLibraryViteConfig({
    rootDir: url.fileURLToPath(new URL('.', import.meta.url)),
});
  1. Edit the package.json file to add the following scripts:
{
    "scripts": {
        "build": "vite build"
    }
}

Author

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.1160latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.1160
1.1.104
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.10
1.0.00

Package Sidebar

Install

npm i @jpapini/vite-config

Weekly Downloads

64

Version

1.1.11

License

MIT

Unpacked Size

22.6 kB

Total Files

15

Last publish

Collaborators

  • jpapini