Skip to content

billouboq/postcss-slash-css

Repository files navigation

postcss-slash-css

A PostCSS plugin that removes duplicates css properties and selector accross multiples css files.

Installation

npm install postcss-slash-css

This plugin only supports node v7.6.0 and over.

Usage

const postcss = require("postcss");
const slashCSS = require("");

postcss([slashCSS({ targets: "**/*.css" })]);

See PostCSS docs for examples for your environment.

Options

targets

  • Type: string (glob using fast-glob)
  • Required

CSS files to search duplicates within source file.

Testing

To test this plugin, just run :

npm test

Example

You can see multiples exemples in the example folder.

License

This software is released under the terms of the MIT license.