https://github.com/hydephp/vite-plugin
https://github.com/hydephp/vite-plugin
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hydephp/vite-plugin
- Owner: hydephp
- License: mit
- Created: 2025-04-27T11:34:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-27T14:02:10.000Z (9 months ago)
- Last Synced: 2025-04-27T14:33:19.650Z (9 months ago)
- Language: HTML
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HydePHP Vite Plugin
Official Vite plugin for HydePHP's realtime compiler integration.
## Installation
```bash
npm install hyde-vite-plugin --save-dev
```
## Usage
```js
// vite.config.js
import { defineConfig } from 'vite';
import hyde from 'hyde-vite-plugin';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [
hyde({
// Optional configuration
input: ['resources/assets/app.css', 'resources/assets/app.js'],
// Files to watch for changes, in addition to input paths
watch: ['_pages', '_posts', '_docs'],
}),
tailwindcss(),
],
});
```
## Options
| Option | Type | Default | Description |
|-----------|------------|-----------------------------------------------------------|------------------------------------------|
| `input` | `string[]` | `['resources/assets/app.css', 'resources/assets/app.js']` | Asset entry points to process |
| `watch` | `string[]` | `['_pages', '_posts', '_docs']` | Content directories to watch for changes |
| `refresh` | `boolean` | `true` | Enable hot reloading for content files |
## Contributing
Contributions to this package are made in the development monorepo [hydephp/develop](https://github.com/hydephp/develop) in the `packages/vite-plugin` directory. Make sure to link your local NPM package!
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.