\begin{quote}
Discard duplicate rules in your CSS files with Post\+CSS. \end{quote}
\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21019}{}\doxysection{Install}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21019}
With \href{https://npmjs.org/package/postcss-discard-duplicates}{\texttt{ npm}} do\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{npm install postcss-\/discard-\/duplicates -\/-\/save }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21020}{}\doxysection{Example}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21020}
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\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{h1, h2 \{}
\DoxyCodeLine{    color: blue;}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{h2, h1 \{}
\DoxyCodeLine{    color: blue;}
\DoxyCodeLine{\} }

\end{DoxyCode}


It has to assume that your rules have already been transformed by another processor, otherwise it would be responsible for too many things.\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21021}{}\doxysubsection{Input}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21021}

\begin{DoxyCode}{0}
\DoxyCodeLine{h1 \{}
\DoxyCodeLine{    margin: 0 auto;}
\DoxyCodeLine{    margin: 0 auto}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{h1 \{}
\DoxyCodeLine{    margin: 0 auto}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21022}{}\doxysubsection{Output}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21022}

\begin{DoxyCode}{0}
\DoxyCodeLine{h1 \{}
\DoxyCodeLine{    margin: 0 auto}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21023}{}\doxysection{Usage}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21023}
See the \href{https://github.com/postcss/postcss\#usage}{\texttt{ Post\+CSS documentation}} for examples for your environment.\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21024}{}\doxysection{Contributors}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21024}
See \href{https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md}{\texttt{ CONTRIBUTORS.\+md}}.\hypertarget{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21025}{}\doxysection{License}\label{md_sfcode_node_modules_postcss_discard_duplicates_README_autotoc_md21025}
MIT © \href{http://beneb.info}{\texttt{ Ben Briggs}} 