定制 hksagentur/kirby-vite 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hksagentur/kirby-vite

最新稳定版本:1.5.0

Composer 安装命令:

composer require hksagentur/kirby-vite

包简介

Vite integration for Kirby

README 文档

README

Backend integration for Vite.js.

Requirements

Kirby CMS (>=3.9)
PHP (>= 8.1)

Installation

Composer

composer require hksagentur/kirby-vite

Download

Download the project archive and copy the files to the plugin directory of your kirby installation. By default this directory is located at /site/plugins.

Configuration

Vite

Create a vite.config.js file in your project root and make sure to generate a manifest with your production build. You can use the configuration template provided with the repository as a starting point (see stubs/vite.config.stub).

Kirby

Embed your Vite assets in your website. Add the following snippet to the header of your site:

<?= vite(['site/assets/index.css', 'site/assets/index.js']) ?>

Make sure that the path of your scripts and styles match those in your Vite configuration.

License

ISC License. Please see License File for more information.

Frequently asked questions

Is the development server supported by this Kirby Plugin?

You can use the Vite development server in your testing environment. The provided configuration template creates a temporary file in Kirby’s cache directory once the development server is startet. The Kirby plugin is looking for this file and loads the required Vite client instead of the generated production build. If the development server is stopped the file is automatically removed from the cache directory and the files are loaded from the manifest again.

统计信息

  • 总下载量: 61
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2025-11-20