1.0.4 • Published 2 years ago

vite-plugin-custom-tsconfig v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-custom-tsconfig

NPM

A very simple plugin to support using filenames like tsconfig.build.json or tsconfig.app.json with Vite. It copies your tsconfig.*.json to tsconfig.json before Vite starts, and removes it when the build is finished.

Installation

Using Yarn

yarn add -D vite-plugin-custom-tsconfig

Using pnpm

pnpm add -D vite-plugin-custom-tsconfig

Using npm

npm install --save-dev vite-plugin-custom-tsconfig

Usage

// vite.config.ts
import customTsConfig from 'vite-plugin-custom-tsconfig';
import {defineConfig} from 'vite';

export default defineConfig({
  plugins: [
    customTsConfig({
      // default: 'tsconfig.build.json'
      filename: 'tsconfig.app.json',
    }),
  ],
});
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago