/ stream.nieuweinstituut.nl / node_modules / postcss-discard-duplicates /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/2 years ago -  
[TXT]CHANGELOG.md40 years ago1.6K 
[   ]LICENSE-MIT40 years ago1.1K 
[TXT]README.md40 years ago1.2Kd768d73 docs [كارل مبارك]
[   ]package.json2 years ago1.9K3e510ca test new git [كارل مبارك]
README.md

postcss-discard-duplicates

Discard duplicate rules in your CSS files with PostCSS.

Install

With npm do:

npm install postcss-discard-duplicates --save

Example

This module will remove all duplicate rules from your stylesheets. It works on at rules, normal rules and declarations. Note that this module does not have any responsibility for normalising declarations, selectors or whitespace, so that it considers these two rules to be different:

h1, h2 {
    color: blue;
}

h2, h1 {
    color: blue;
}

It has to assume that your rules have already been transformed by another processor, otherwise it would be responsible for too many things.

Input

h1 {
    margin: 0 auto;
    margin: 0 auto
}

h1 {
    margin: 0 auto
}

Output

h1 {
    margin: 0 auto
}

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80