Home / File/ astro.config.mjs — astro Source File

astro.config.mjs — astro Source File

Architecture documentation for astro.config.mjs, a javascript file in the astro codebase. 3 imports, 0 dependents.

File javascript 3 imports

Entity Profile

Dependency Diagram

graph LR
  c84311e2_ce1d_76ef_7ab5_7ae13b35db5b["astro.config.mjs"]
  67835e6a_a842_43b5_3bed_a495a7a7319b["path"]
  c84311e2_ce1d_76ef_7ab5_7ae13b35db5b --> 67835e6a_a842_43b5_3bed_a495a7a7319b
  3b10c06c_a805_be1f_3a3d_1f00ea858ef5["config"]
  c84311e2_ce1d_76ef_7ab5_7ae13b35db5b --> 3b10c06c_a805_be1f_3a3d_1f00ea858ef5
  7c7c08e2_45f5_726d_94b5_c6aa8d473762["node"]
  c84311e2_ce1d_76ef_7ab5_7ae13b35db5b --> 7c7c08e2_45f5_726d_94b5_c6aa8d473762
  style c84311e2_ce1d_76ef_7ab5_7ae13b35db5b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import path from "path";
import { defineConfig } from 'astro/config';

// https://astro.build/config
import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({
  vite: {
    build: {
      cssCodeSplit: false,
      assetsInlineLimit: 0,
      rollupOptions: {
        output: {
          
          entryFileNames: 'assets/script/a.[hash].js',
          assetFileNames: (option) => {
            const { ext, dir, base } = path.parse(option.name);

            if (ext == ".css") return path.join(dir, "assets/css", 'a.css');
            return "assets/img/[name].[ext]";
          }
        }
      }
    }
  },
  build: {
    assets: 'assets'
  },
  output: "server",
  adapter: node({
    mode: "standalone"
  })
});

Dependencies

  • config
  • node
  • path

Frequently Asked Questions

What does astro.config.mjs do?
astro.config.mjs is a source file in the astro codebase, written in javascript.
What does astro.config.mjs depend on?
astro.config.mjs imports 3 module(s): config, node, path.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/test/fixtures/custom-assets-name/astro.config.mjs (directory: packages/astro/test/fixtures/custom-assets-name).

Analyze Your Own Codebase

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

Try Supermodel Free