davidhirtz / yii2-vite
Vite integration for Yii 2 framework
Installs: 362
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- guzzlehttp/guzzle: ^7.0
- yiisoft/yii2: ^2.0
Requires (Dev)
- rector/rector: ^1.0
- symfony/var-dumper: ^6.3
- symplify/easy-coding-standard: ^12.0
README
Vite build option manifest
is required to generate manifest.json file.
Default component configuration
'components' => [ 'vite' => [ 'class' => \davidhirtz\yii2\vite\components\Vite::class, 'baseUrl' => '/dist/', 'checkDevServer' => true, 'devBaseUrl' => 'http://localhost:5173/', 'devBaseUrlInternal' => null, 'manifestPath' = '@webroot/dist/.vite/manifest.json', 'useDevServer' = YII_ENV_DEV ], ],
Usage
Yii::$app->get('vite')->register('/resources/js/app.ts');