Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beckan/csscomb-webpack-plugin
A Webpack plugin to let CSSComb process CSS source files.
https://github.com/beckan/csscomb-webpack-plugin
csscomb webpack webpack-plugin webpack3 webpack4
Last synced: 4 months ago
JSON representation
A Webpack plugin to let CSSComb process CSS source files.
- Host: GitHub
- URL: https://github.com/beckan/csscomb-webpack-plugin
- Owner: beckan
- License: mit
- Created: 2018-05-07T14:35:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T10:19:19.000Z (over 6 years ago)
- Last Synced: 2024-04-25T05:20:50.196Z (9 months ago)
- Topics: csscomb, webpack, webpack-plugin, webpack3, webpack4
- Language: JavaScript
- Homepage:
- Size: 193 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# csscomb-webpack-plugin
A CSSComb plugin for webpack
## Requirements
This module requires a minimum of Node v6.9.0 and it's compatible with both Webpack 3 and 4.
## Getting Started
To begin, you'll need to install `csscomb-webpack-plugin`:
```console
$ npm install csscomb-webpack-plugin --save-dev
```Then add the plugin to your `webpack` config. For example:
```js
// webpack.config.js
const CSSCombPlugin = require('csscomb-webpack-plugin');module.exports = {
// ...
plugins: [
new CSSCombPlugin(options),
],
// ...
}
```And run `webpack` via your preferred method.
## Options
### `configFile`
Type: `String`
Default: `./.csscomb`Specify the config file location to be used by `CSSComb`.
_Note: If no config was found, it will load CSSComb standard config_
### `files`
Type: `String|Array[String]`
Default: `'**/*.s?(a|c)ss'`Specify the glob pattern for finding files.
### `displayErrors`
Type: `Boolean`
Default: `true`Show CSSComb error messages.
## License
#### [MIT](./LICENSE)