# babel-plugin-css-template

> A plugin for Babel 6 that removes whitespace and minifies css written using template strings.

Latest version **1.0.4** (published 2016-04-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install babel-plugin-css-template
pnpm add babel-plugin-css-template
yarn add babel-plugin-css-template
bun add babel-plugin-css-template
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-04-02 |
| First published | 2016-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Frederik Wessberg |
| Maintainers | wessberg |
| Keywords | babel |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-css-template
- Repository: https://github.com/dlmma/babel-plugin-css-template
- Homepage: https://github.com/dlmma/babel-plugin-css-template#readme
- Issues: https://github.com/dlmma/babel-plugin-css-template/issues
- npm.io page: https://npm.io/package/babel-plugin-css-template

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-04-02
- 1.0.3 — 2016-04-02
- 1.0.2 — 2016-04-02
- 1.0.1 — 2016-04-02
- 1.0.0 — 2016-04-02

## README

# babel-plugin-css-template

A plugin for Babel 6 that removes whitespace and minifies css written using template strings.

## Installation

```
$ npm install babel-plugin-css-template --save-dev
$ babel --plugins css-template script.js
```

### Important

This plugin needs to be run before `transform-es2015-template-literals`.

## Usage

All template strings tagged with the `css` tag will be minified and all unneeded white-space will be removed.

For instance:

```javascript
let styles = css`
	icon-component {
		margin: 0 5px 0 0;
	}
`;
```

becomes:

```javascript
var styles = "icon-component{margin:0 5px 0 0}";
```

## License
Copyright (c) 2016 Dlmma IVS. Released under the MIT license.

[npm-url]: https://npmjs.org/package/babel-plugin-css-template
[npm-image]: https://badge.fury.io/js/babel-plugin-css-template.svg

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