UNPKG

scope-global-styles

Version:

Applies a selector to all global styles to allow apps to not have any styles leaked

40 lines (27 loc) 943 B
# scope-global-styles ## Table of Contents - [Install](#install) - [Usage with Webpack](#usage-with-webpack) - [Options](#options) - [Contribute](#contribute) - [License](#license) ## Install ```console $ npm install scope-global-styles ``` ## Usage with Webpack ```js 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](https://github.com/bh3605/scope-global-styles/issues/new), or open a pull request with a fix. ## License [MIT](LICENSE) @ 2023 Bryson Hair