vite-copyright-injector
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

vite-copyright-injector

English | 中文 | Français

Description

vite-copyright-injector is a plugin specifically created for Vite.js. Its main function is to automatically insert copyright notices at the top of your source code files.

Key Features

  • Automatic insertion of copyright notices
  • Configurable with options for custom copyright text
  • Supports a variety of file types, including .js, .ts, .vue, etc.
  • Fast, lightweight, non-intrusive

Installation

Install using npm or yarn:

npm install vite-copyright-injector --save-dev
# or
yarn add vite-copyright-injector -D

Usage

Import and use the plugin in your vite.config.js or vite.config.ts file:

import { defineConfig } from 'vite'
import copyright from 'vite-copyright-injector'

export default defineConfig({
  plugins: [
    copyright({
      // Optional configuration goes here
    }),
  ],
})

Configuration

The plugin accepts a configuration object, below are all available configuration options:

{
  // More details here
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i vite-copyright-injector

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

188 kB

Total Files

22

Last publish

Collaborators

  • huyong007