Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alxmtr/vite-plugin-posthtml
A PostHTML plugin for Vite
https://github.com/alxmtr/vite-plugin-posthtml
posthtml vite vite-plugin
Last synced: 19 days ago
JSON representation
A PostHTML plugin for Vite
- Host: GitHub
- URL: https://github.com/alxmtr/vite-plugin-posthtml
- Owner: alxmtr
- Created: 2022-02-08T16:50:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T18:26:39.000Z (almost 3 years ago)
- Last Synced: 2024-10-23T19:59:03.524Z (23 days ago)
- Topics: posthtml, vite, vite-plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@alxmtr/vite-plugin-posthtml
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite-plugin-posthtml
A [PostHTML](https://github.com/posthtml/posthtml) plugin for [Vite](https://vitejs.dev)## Install
```bash
npm i @alxmtr/vite-plugin-posthtml
```## Usage
Edit your `vite.config.js` file:
```js
import posthtmlPlugin from '@alxmtr/vite-plugin-posthtml'export default {
plugins: [
posthtmlPlugin({
options: {
// ...
},
plugins: [
// ...
],
}),
],
}
```## Options
### `options`
[PostHTML parser options](https://posthtml.org/#/core?id=posthtml-options)### `plugins`
[PostHTML plugins](https://github.com/posthtml/posthtml#plugins)