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
- PostCSS + SASS preset
- Compression
- Linting
TODO
- Implement module federation logic for auto-resolution
- Parse TSPaths and extend the resolution logic
- Expose PostCSS variables configuration
Usage
- Install the package
pnpm install --dev @adaliszk/web-compiler vite - Configure vite for development and bundling:
import { webConfig } from '@adaliszk/web-compiler' export default webConfig()
- Add vite commands to your scope:
"scripts": { "build": "vite build", "preview": "vite preview" "start": "vite" }