scope-global-styles
v0.0.9
Published
Applies a selector to all global styles to allow apps to not have any styles leaked
Downloads
38
Maintainers
Readme
scope-global-styles
Table of Contents
Install
$ npm install scope-global-styles
Usage with Webpack
const globalStylePrefixer = require('scope-global-styles');
globalStylePrefixer("my-prefix", webpack, require("./angular.json"));
return webpack;
Options
| Name | Type | Description | |------|------|-------------| | prefix | string | The string to prepend to every CSS selector. | | webpack | object | Webpack configuration object | | ngJson | object | json object of your angular.json file |
Contribute
Please contribute! If you have any questions or bugs, open an issue, or open a pull request with a fix.
License
MIT @ 2023 Bryson Hair