Skip to content
vite-config / 1.6.2

vite-config 1.6.2

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

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.6.2.tgz

Download activity

  • Total downloads 194
  • Last 30 days 0
  • Last week 0
  • Today 0