Skip to content
PostCSS plugin to wrap css rules in a namespace
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintrc
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json
test.js

README.md

postcss-wrap Build Status

Wrap CSS rules in a namespace e.g. .selector{} into .namespace .selector {}

Install

npm install postcss-wrap --save-dev

Usage

postcsswrap({selector: '.wrap', skip: '.wrap'})

Options

options.selector

Type: String

Provide a namespace selector in which to wrap CSS.

options.skip

Type: Regular Expression or Array of Regular Expressions

Skip selectors from being wrapped. Even if you will not set this option, it will still skip css animation selectors from, to and endingWithPercentSymbol%

You can’t perform that action at this time.