This plugin injects styles into the document head.
npm i -D vite-plugin-lib-inject-styles
or
yarn add -D vite-plugin-lib-inject-styles
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.
This plugin is licensed under the ISC License. See the LICENSE file for more information.