Package Exports
- postcss-prefixwrap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-prefixwrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Prefix Wrap v0.0.1

A PostCSS plugin used to wrap css styles with a css selector used to constrain their affect on parent elements in a page for use when embedding an html interface inside an application container you do not control.
Getting Started
1. Install the Node module:
npm install postcss-prefixwrap2. Load the module in your build configuration:
var prefixwrap = require("postcss-prefixwrap");3. Instantiate the postcss plugin:
// This will be a class on the container div.
var wrapSelector = ".my-custom-wrap";
// Postcss config for some workflow such as webpack.
{
postcss: [
prefixwrap(wrapSelector)
]
}4. Add the container to your markup.
<div class="my-custom-wrap">
<!-- Your existing markup. -->
</div>Testing
See https://travis-ci.org/dbtedman/postcss-prefixwrap for CI results, run on each commit.
Static Analysis
Code is linted using ESLint:
npm run test:lint