JSPM

  • Created
  • Published
  • Downloads 3258
  • Score
    100M100P100Q83160F
  • License BSD-3-Clause

Web configuration for Vite using Typescript

Package Exports

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

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:

  • TLS Encryption
  • Typescript Path Resolution
  • PWA Manifest Generator
  • Compression
  • Linting

Usage

  1. Install the package yarn add --dev @adaliszk/web-compiler
  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": "web-compiler build",
      "preview": "web-compiler preview"
      "start": "web-compiler"
    }