0.102.3 • Published 1 year ago
@adaliszk/qwik-compiler v0.102.3
Configuration for Qwik-based project compilation using Vite
Provides
Pre-configured Vite with:
@adaliszk/web-compiler
- Qwik and Qwik-City
Usage
- Install the package
yarn add --dev @adaliszk/qwik-compiler
Configure vite for development and bundling:
import { qwikConfig } from '@adaliszk/qwik-compiler' export default qwikConfig()
Add vite commands to your scope:
{ "scripts": { "build": "qwik-compiler build", "preview": "qwik-compiler preview", "start": "qwik-compiler" } }
Configuration
The qwikConfig
factory provides a user configuration that extends vite's config, but adds additional properties. With
this package, the additional properties are:
qwik
: Configuration for theqwikVite
plugincity
: Configuration for theqwikCity
plugin, if boolean supplied it can control if the plugin is loaded or not
Example:
import { qwikConfig } from '@adaliszk/qwik-compiler'
export default qwikConfig({
city: false, // Disable City for projects that does not need router
qwik: { // Configure Qwik as usual
debug: true,
}
})
Versioning
Since this is a meta-package, the versioning reflect its main provided package, in this case @builder.io/qwik
. However, only the
Major and Minor versions are kept in sync, and the Patch is used to bump the meta-package.