🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

vite-plugin-import-css

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-import-css

Help your lib import css files through vite plugin

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

vite-plugin-import-css

Help your lib import css files through vite plugin.

NPM version

Installation

pnpm add vite-plugin-import-css -D

Usage

import { defineConfig } from 'vite'
import plugin from 'vite-plugin-import-css'

export default defineConfig({
  plugins: [plugin()],
})

Options

cssFile

Type: string
Default: ./style.css

The default is ./style.css, which is useful when you have changed the name using assetFileName.

dynamicImport

Type: boolean
Default: false

If true, the plugin will use import() to import css files in esm.

LICENSE (MIT)

Keywords

vite

FAQs

Package last updated on 12 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts