# @coorpacademy/css-wrapper-webpack-plugin

> Webpack plugin to wrap all CSS classes in a container

Latest version **1.0.8** (published 2016-08-30) · 0 weekly downloads

## Install

```sh
npm install @coorpacademy/css-wrapper-webpack-plugin
pnpm add @coorpacademy/css-wrapper-webpack-plugin
yarn add @coorpacademy/css-wrapper-webpack-plugin
bun add @coorpacademy/css-wrapper-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2016-08-30 |
| First published | 2016-08-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | chrisdugne, coorpadmin, esa-coorp, gaelleleguet, godu, guillaume_coorp, jfmengels, jordaneg, kornifex, lcalvy, mpnt, t1b0 |

## Links

- npm: https://www.npmjs.com/package/@coorpacademy/css-wrapper-webpack-plugin
- npm.io page: https://npm.io/package/@coorpacademy/css-wrapper-webpack-plugin

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.15.0
- [postcss](https://npm.io/package/postcss.md) ^5.1.2

## Recent versions

- 1.0.8 (latest) — 2016-08-30
- 1.0.7 — 2016-08-30
- 1.0.6 — 2016-08-30
- 1.0.4 — 2016-08-30

## README

Disclaimer: you should use this plugin with minified css only.

### What it does

Providing your minified `styles.css` is:
```
.plop {opacity: .5;}.plup {height: 12px;}
```

the final css will be wrapped with your container
```
#app .plop {opacity: .5;}#app .plup {height: 12px;}
```

### Usage
require the plugin
```
const WebpackCSSWrapperPlugin = require('@coorpacademy/webpack-css-wrapper');
```

then within your webpack plugins:
```
  plugins: [
    new ExtractTextWebpackPlugin('styles.css'),
    new WebpackCSSWrapperPlugin('styles.css', '#app')
  ]
```

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