Skip to content

lucastanger/vite-plugin-inject-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite Plugin Lib Inject Styles

This plugin injects styles into the document head.

Installation

npm i -D vite-plugin-lib-inject-styles

or

yarn add -D vite-plugin-lib-inject-styles

Usage

To use the plugin, import it in your Vite config file and add it to the plugins array. Here is an example:

// vite.config.js
import injectStyles from 'vite-plugin-lib-inject-styles'

export default {
  plugins: [
    injectStyles(),
  ],
}

The plugin will automatically look for CSS files with a .css extension in your project and inject them into your library bundle.

License

This plugin is licensed under the ISC License. See the LICENSE file for more information.

About

This vite plugin enables you to inject css files in vite lib mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published