Skip to content

liu1435533520/vite-plugin-html-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm i -D vite-plugin-html-hooks

Add plugin to your vite.config.ts:

import htmlHooks from 'vite-plugin-html-hooks';

export default defineConfig(() => {
  return {
    plugins: [
      htmlHooks((html: string) => {
        return html.replace(/<title>.*<\/title>/g, `<title>Hello world</title>`);
      }),
    ],
  };
});

About

a hooks after vite built

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published