Home / File/ vite.config-relative-base.js — vite Source File

vite.config-relative-base.js — vite Source File

Architecture documentation for vite.config-relative-base.js, a javascript file in the vite codebase. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  ae6f0e3d_0347_f1a1_a144_8574f5f2eba7["vite.config-relative-base.js"]
  f86de0e1_d1c4_a5fa_5256_854f3d35619b["vite.config.js"]
  ae6f0e3d_0347_f1a1_a144_8574f5f2eba7 --> f86de0e1_d1c4_a5fa_5256_854f3d35619b
  54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"]
  ae6f0e3d_0347_f1a1_a144_8574f5f2eba7 --> 54c37fea_4fe7_2693_71cb_1276b77f55f9
  style ae6f0e3d_0347_f1a1_a144_8574f5f2eba7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { defineConfig } from 'vite'
import baseConfig from './vite.config.js'

export default defineConfig(({ isPreview }) => ({
  ...baseConfig,
  base: !isPreview ? './' : '/relative-base/', // relative base to make dist portable
  build: {
    ...baseConfig.build,
    outDir: 'dist/relative-base',
    watch: null,
    minify: false,
    assetsInlineLimit: 0,
    rollupOptions: {
      output: {
        entryFileNames: 'entries/[name].js',
        chunkFileNames: 'chunks/[name]-[hash].js',
        assetFileNames: 'other-assets/[name]-[hash][extname]',
        // manualChunks(id) {
        //   if (id.includes('css/manual-chunks.css')) {
        //     return 'css/manual-chunks'
        //   }
        // },
      },
    },
  },
  cacheDir: 'node_modules/.vite-relative-base',
}))

Domain

Dependencies

Frequently Asked Questions

What does vite.config-relative-base.js do?
vite.config-relative-base.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain.
What does vite.config-relative-base.js depend on?
vite.config-relative-base.js imports 2 module(s): vite, vite.config.js.
Where is vite.config-relative-base.js in the architecture?
vite.config-relative-base.js is located at playground/assets/vite.config-relative-base.js (domain: ViteCore, directory: playground/assets).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free