https://github.com/videojs/videojs-generate-postcss-config
videojs-generate-postcss-config
https://github.com/videojs/videojs-generate-postcss-config
Last synced: 6 months ago
JSON representation
videojs-generate-postcss-config
- Host: GitHub
- URL: https://github.com/videojs/videojs-generate-postcss-config
- Owner: videojs
- License: other
- Created: 2018-08-17T17:54:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-03T13:47:50.000Z (about 2 years ago)
- Last Synced: 2025-06-08T07:44:08.154Z (7 months ago)
- Language: JavaScript
- Size: 356 KB
- Stars: 0
- Watchers: 13
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# videojs-generate-postcss-config
[](https://travis-ci.org/videojs/videojs-generate-postcss-config)
[](https://greenkeeper.io/)
[](http://slack.videojs.com)
[](https://nodei.co/npm/videojs-generate-postcss-config/)
Currently our postcss configs are the same for most plugins, but when the default config changes a bit, every repository has
to be updated since it is a static file. This package will provide the standard config as a module, so that updates can be
deployed much easier.
Lead Maintainer: Brandon Casey [@brandonocasey](https://github.com/brandonocasey)
Maintenance Status: Stable
**Table of Contents**
- [Installation](#installation)
- [Options](#options)
- [`browserslist`](#browserslist)
- [`banner`](#banner)
## Installation
```
$ npm install --save-dev postcss postcss-cli videojs-generate-postcss-config
```
Then in your postcss config do
```js
const generatePostcssConfig = require('videojs-generate-postcss-config');
module.exports = function(context) {
const options = {};
return generatePostcssConfig(context, options);
};
```
## Options
options that are passed as an object to the `generatePostcssConfig` function.
### `browserslist`
> Type: `string|Array`
> Default: ['defaults', 'ie 11']
What browser syntax should be supported in the browser/test dist files. Can also be specified in the package.json as a top level `browserslist` key/value. See the [browserslist repo](https://github.com/browserslist/browserslist) for more information.
### `banner`
> Type: `string`
> Default: `/*! @name ${pkg.name} @version ${pkg.version} @license ${pkg.license} */`
The banner that should be inserted to the top of all bundles. You probably should not change this from the default!