1.0.7 • Published 1 year ago

vite-vscode v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

vite-vscode

This creates jsconfig.json tsconfig.json vscode/settings.json from viteConfig/resolve/alias.

Features

  • No configuration
  • Lightweight

Installation

  • with npm
npm i vite-vscode
  • with yarn
yarn add vite-vscode
  • with pnpm
pnpm add vite-vscode

Setup

/* vite.config.js */

Configure your application with whatever configuration you want.

Basic Usage:

import viteVSCode from 'vite-vscode'

const plugins = [/* Other plugins... */ viteVSCode()]

export default defineConfig({ plugins /* Whatever.... */ })

Advanced usages :

import viteVSCode, { createAlias } from 'vite-vscode'

const resolve = { alias: createAlias('$', './src') }
const plugins = [/* Other plugins... */ viteVSCode()]

// createAlias takes a prefix and target dir
// Returns child dirs with the prefix

// ./src/components  ---  $components
// ./src/layouts     ---  $layouts
// ./src/store       ---  $store

export default defineConfig({ plugins /* Whatever.... */ })


Made by Nazmus Sayad with ❤️.

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago