Skip to content
vite-config / 1.9.0

vite-config 1.9.0

Install from the command line:
Learn more about npm packages
$ npm install @codeoscopic/vite-config@1.9.0
Install via package.json:
"@codeoscopic/vite-config": "1.9.0"

About this version

@codeoscopic/vite-config

This package includes our vite-config custom config for React projects.

Installation and configuration

  1. Install the package:
npm install -D vite @vitejs/plugin-react @codeoscopic/vite-config
  1. Create a vite.config.ts file in your project root with:
import { defineConfig } from "vite";
import defaultOptions from "@codeoscopic/vite-config/dist/react";

export default defineConfig(defaultOptions);

If you want to use antd in your project, change the import for @codeoscopic/vite-config/dist/react-antd and install the following dependencies:

npm install antd
npm install -D less less-loader antd

Details


Assets

  • vite-config-1.9.0.tgz

Download activity

  • Total downloads 489
  • Last 30 days 71
  • Last week 12
  • Today 3