Skip to content

Latest commit

 

History

History

web-compiler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Configuration for Web-based project compilation using Vite

Provides

Pre-configured Vite with:

  • Typescript path resolution
  • PostCSS preset with Tailwind detection
  • Linting (TSC, Stylelint, ESLint)
  • Compression (Brotli and Gzip)
  • TLS Encryption

TODO

  • Implement module federation logic for auto-resolution

Usage

  1. Install the package pnpm install --dev @adaliszk/web-compiler vite
  2. Configure vite for development and bundling:
    import { webConfig } from '@adaliszk/web-compiler'
    
    export default webConfig()
  3. Add vite commands to your scope:
    "scripts": {
      "build": "vite build",
      "preview": "vite preview"
      "start": "vite"
    }

Versioning

Since this is a meta-package, the versioning reflect its main provided package, in this case vite. However, only the Major and Minor versions are kept in sync, and the Patch is used to bump the meta-package.