A PostCSS plugin that removes duplicates css properties and selector accross multiples css files.
npm install postcss-slash-css
This plugin only supports node v7.6.0 and over.
const postcss = require("postcss");
const slashCSS = require("");
postcss([slashCSS({ targets: "**/*.css" })]);
See PostCSS docs for examples for your environment.
- Type:
string
(glob using fast-glob) - Required
CSS files to search duplicates within source file.
To test this plugin, just run :
npm test
You can see multiples exemples in the example folder.
This software is released under the terms of the MIT license.