pre-publish-optimizations.mjs — tailwindcss Source File
Architecture documentation for pre-publish-optimizations.mjs, a javascript file in the tailwindcss codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 868148eb_102d_3d7e_82a6_76aa0ee09831["pre-publish-optimizations.mjs"] 8118fcf2_a51d_d1a1_93d3_c71d3a646692["promises"] 868148eb_102d_3d7e_82a6_76aa0ee09831 --> 8118fcf2_a51d_d1a1_93d3_c71d3a646692 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5["node:path"] 868148eb_102d_3d7e_82a6_76aa0ee09831 --> 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5 ba54c7c3_7b1e_9984_bfef_a693a3df2d84["postcss"] 868148eb_102d_3d7e_82a6_76aa0ee09831 --> ba54c7c3_7b1e_9984_bfef_a693a3df2d84 9e33ad4f_1053_3b4b_d5fb_6f72f0b0652e["postcss-import"] 868148eb_102d_3d7e_82a6_76aa0ee09831 --> 9e33ad4f_1053_3b4b_d5fb_6f72f0b0652e 314f842b_c991_fa3a_70e2_6e0554f5789b["prettier"] 868148eb_102d_3d7e_82a6_76aa0ee09831 --> 314f842b_c991_fa3a_70e2_6e0554f5789b style 868148eb_102d_3d7e_82a6_76aa0ee09831 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fs from 'node:fs/promises'
import path from 'node:path'
import postcss from 'postcss'
import atImport from 'postcss-import'
import prettier from 'prettier'
// Performance optimization: Inline the contents of the `tailwindcss/index.css`
// file so that we don't need to handle imports at runtime.
{
let __dirname = path.dirname(new URL(import.meta.url).pathname)
let file = path.resolve(__dirname, '../packages/tailwindcss/index.css')
let contents = await fs.readFile(file, 'utf-8')
let inlined = await prettier.format(
await postcss()
.use(atImport())
.process(contents, { from: file })
.then((result) => result.css),
{ filepath: file },
)
await fs.writeFile(file, inlined, 'utf-8')
}
Domain
Subdomains
Functions
Dependencies
- node:path
- postcss
- postcss-import
- prettier
- promises
Source
Frequently Asked Questions
What does pre-publish-optimizations.mjs do?
pre-publish-optimizations.mjs is a source file in the tailwindcss codebase, written in javascript. It belongs to the OxideEngine domain, PreProcessors subdomain.
What functions are defined in pre-publish-optimizations.mjs?
pre-publish-optimizations.mjs defines 1 function(s): inlined.
What does pre-publish-optimizations.mjs depend on?
pre-publish-optimizations.mjs imports 5 module(s): node:path, postcss, postcss-import, prettier, promises.
Where is pre-publish-optimizations.mjs in the architecture?
pre-publish-optimizations.mjs is located at scripts/pre-publish-optimizations.mjs (domain: OxideEngine, subdomain: PreProcessors, directory: scripts).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free