https://github.com/lightapis/vite-plugin-banner-injection
Insert specified content into the build bundle code
https://github.com/lightapis/vite-plugin-banner-injection
banner plugin vite vite-plugin
Last synced: about 1 month ago
JSON representation
Insert specified content into the build bundle code
- Host: GitHub
- URL: https://github.com/lightapis/vite-plugin-banner-injection
- Owner: LightAPIs
- License: mit
- Created: 2023-10-01T08:07:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T14:43:45.000Z (over 2 years ago)
- Last Synced: 2025-09-26T14:59:49.047Z (9 months ago)
- Topics: banner, plugin, vite, vite-plugin
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/vite-plugin-banner-injection
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-banner-injection
## Installation
```shell
npm install vite-plugin-banner-injection -D
```
## Usage
in `vite.config.ts`:
```typescript
import { defineConfig } from 'vite';
import BannerInjection from 'vite-plugin-banner-injection';
export default defineConfig({
plugins: [
BannerInjection({
banner: 'banner content',
footer: 'footer contnet',
}),
],
});
```
## License
[MIT](./LICENSE)