JSPM

  • Created
  • Published
  • Downloads 3258
  • Score
    100M100P100Q83167F
  • License BSD-2-Clause

Web configuration for Vite using Typescript

Package Exports

  • @adaliszk/web-compiler
  • @adaliszk/web-compiler/dist/compiler.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@adaliszk/web-compiler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Configuration for Web-based project compilation using Vite

Provides

Pre-configured Vite with:

  • Typescript path resolution
  • Linting (TSC, Stylelint, ESLint, Biome)
  • Formatting (Biome)
  • Compression (Brotli and Gzip)
  • PostCSS + SASS preset
  • TLS Encryption

TODO

  • Implement module federation logic for auto-resolution
  • Expose PostCSS variables configuration

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.