# @types/rollup-plugin-css-only

> TypeScript definitions for rollup-plugin-css-only

Latest version **3.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/rollup-plugin-css-only
pnpm add @types/rollup-plugin-css-only
yarn add @types/rollup-plugin-css-only
bun add @types/rollup-plugin-css-only
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.1.3 |
| Published | 2023-11-07 |
| First published | 2021-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51428 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/rollup-plugin-css-only
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-css-only
- npm.io page: https://npm.io/package/@types/rollup-plugin-css-only

## Dependencies (2)

- [rollup](https://npm.io/package/rollup.md) ^0.63.4
- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 3.1.3 (latest) — 2023-11-07
- 3.1.0 (ts3.7) — 2021-11-14
- 3.1.2 — 2023-10-18
- 3.1.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/rollup-plugin-css-only`

# Summary
This package contains type definitions for rollup-plugin-css-only (https://github.com/thgh/rollup-plugin-css-only).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-css-only.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-css-only/index.d.ts)
````ts
/// <reference types="node" />
import { OutputBundle, Plugin } from "rollup";

declare namespace css {
    interface Options {
        /**
         *  All CSS files will be parsed by default, but you can also specifically include files
         */
        include?: ReadonlyArray<string | RegExp> | string | RegExp | null;
        /**
         *  CSS files to exclude from being parsed
         */
        exclude?: ReadonlyArray<string | RegExp> | string | RegExp | null;
        /**
         * Callback that will be called ongenerate
         */
        output?:
            | boolean
            | string
            | ((styles: string, styleNodes: Record<string, string>, bundle: OutputBundle) => void)
            | null
            | undefined;
    }
}

declare function css(options?: css.Options): Plugin;
export = css;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [rollup](https://npmjs.com/package/rollup)

# Credits
These definitions were written by [Mateusz Szewc](https://github.com/SitamMatt).

---
_Source: https://npm.io/package/@types/rollup-plugin-css-only · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
