\begin{quote}
Safe defaults for cssnano which require minimal configuration. \end{quote}
\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7496}{}\doxysection{Table of Contents}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7496}

\begin{DoxyItemize}
\item \href{\#overview}{\texttt{ Overview}}
\item \href{\#usage}{\texttt{ Usage}}
\begin{DoxyItemize}
\item \href{\#install}{\texttt{ Install}}
\item \href{\#configuration}{\texttt{ Configuration}}
\end{DoxyItemize}
\item \href{\#plugins}{\texttt{ Plugins}}
\begin{DoxyItemize}
\item \href{\#cssnano-util-raw-cache}{\texttt{ cssnano-\/util-\/raw-\/cache}}
\item \href{\#postcss-calc-external}{\texttt{ postcss-\/calc (external)}}
\item \href{\#postcss-colormin}{\texttt{ postcss-\/colormin}}
\item \href{\#postcss-convert-values}{\texttt{ postcss-\/convert-\/values}}
\item \href{\#postcss-discard-comments}{\texttt{ postcss-\/discard-\/comments}}
\item \href{\#postcss-discard-duplicates}{\texttt{ postcss-\/discard-\/duplicates}}
\item \href{\#postcss-discard-empty}{\texttt{ postcss-\/discard-\/empty}}
\item \href{\#postcss-discard-overridden}{\texttt{ postcss-\/discard-\/overridden}}
\item \href{\#postcss-merge-longhand}{\texttt{ postcss-\/merge-\/longhand}}
\item \href{\#postcss-merge-rules}{\texttt{ postcss-\/merge-\/rules}}
\item \href{\#postcss-minify-font-values}{\texttt{ postcss-\/minify-\/font-\/values}}
\item \href{\#postcss-minify-gradients}{\texttt{ postcss-\/minify-\/gradients}}
\item \href{\#postcss-minify-params}{\texttt{ postcss-\/minify-\/params}}
\item \href{\#postcss-minify-selectors}{\texttt{ postcss-\/minify-\/selectors}}
\item \href{\#postcss-normalize-charset}{\texttt{ postcss-\/normalize-\/charset}}
\item \href{\#postcss-normalize-display-values}{\texttt{ postcss-\/normalize-\/display-\/values}}
\item \href{\#postcss-normalize-positions}{\texttt{ postcss-\/normalize-\/positions}}
\item \href{\#postcss-normalize-repeat-style}{\texttt{ postcss-\/normalize-\/repeat-\/style}}
\item \href{\#postcss-normalize-string}{\texttt{ postcss-\/normalize-\/string}}
\item \href{\#postcss-normalize-timing-functions}{\texttt{ postcss-\/normalize-\/timing-\/functions}}
\item \href{\#postcss-normalize-unicode}{\texttt{ postcss-\/normalize-\/unicode}}
\item \href{\#postcss-normalize-url}{\texttt{ postcss-\/normalize-\/url}}
\item \href{\#postcss-normalize-whitespace}{\texttt{ postcss-\/normalize-\/whitespace}}
\item \href{\#postcss-ordered-values}{\texttt{ postcss-\/ordered-\/values}}
\item \href{\#postcss-reduce-initial}{\texttt{ postcss-\/reduce-\/initial}}
\item \href{\#postcss-reduce-transforms}{\texttt{ postcss-\/reduce-\/transforms}}
\item \href{\#postcss-svgo}{\texttt{ postcss-\/svgo}}
\item \href{\#postcss-unique-selectors}{\texttt{ postcss-\/unique-\/selectors}}
\end{DoxyItemize}
\item \href{\#contributors}{\texttt{ Contributors}}
\item \href{\#license}{\texttt{ License}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7497}{}\doxysection{Overview}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7497}
This default preset for cssnano only includes transforms that make no assumptions about your CSS other than what is passed in. In previous iterations of cssnano, assumptions were made about your CSS which caused output to look different in certain use cases, but not others. These transforms have been moved from the defaults to other presets, to make this preset require only minimal configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7498}{}\doxysection{Usage}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7498}
\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7499}{}\doxysubsection{Install}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7499}
Note that this preset comes bundled with cssnano {\itshape by default}, so you don\textquotesingle{}t need to install it separately.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7500}{}\doxysubsection{Configuration}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7500}
If you would like to use the default configuration, then you don\textquotesingle{}t need to add anything to your {\ttfamily package.\+json}.

But should you wish to customise this, you can pass an array with the second parameter as the options object to use. For example, to remove all comments\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{ \{}
\DoxyCodeLine{   "{}name"{}: "{}awesome-\/application"{},}
\DoxyCodeLine{+  "{}cssnano"{}: \{}
\DoxyCodeLine{+    "{}preset"{}: [}
\DoxyCodeLine{+      "{}default"{},}
\DoxyCodeLine{+      \{"{}discardComments"{}: \{"{}removeAll"{}: true\}\}}
\DoxyCodeLine{+    ]}
\DoxyCodeLine{+  \}}
\DoxyCodeLine{ \} }

\end{DoxyCode}


Depending on your usage, the JSON configuration might not work for you, such as in cases where you would like to use options with customisable function parameters. For this use case, we recommend a {\ttfamily cssnano.\+config.\+js} at the same location as your {\ttfamily package.\+json}. You can then load a preset and export it with your custom parameters\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{const defaultPreset = require('cssnano-\/preset-\/default');}
\DoxyCodeLine{}
\DoxyCodeLine{module.exports = defaultPreset(\{}
\DoxyCodeLine{  discardComments: \{}
\DoxyCodeLine{    remove: comment => comment[0] === "{}@"{}}
\DoxyCodeLine{  \}}
\DoxyCodeLine{\}); }

\end{DoxyCode}


Note that you may wish to publish your own preset to npm for reusability, should it differ a lot from this one. This is highly encouraged!\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7501}{}\doxysection{Plugins}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7501}
\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7502}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/\+Siilwyn/css-\/declaration-\/sorter\char`\"{}$>$$<$tt$>$css-\/declaration-\/sorter$<$/tt$>$$<$/a$>$ (external)}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7502}
\begin{quote}
Sorts CSS declarations fast and automatically in a certain order. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7503}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/cssnano-\/util-\/raw-\/cache\char`\"{}$>$$<$tt$>$cssnano-\/util-\/raw-\/cache$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7503}
\begin{quote}
Manages the raw value formatting for generated AST nodes. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7504}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/postcss/postcss-\/calc\char`\"{}$>$$<$tt$>$postcss-\/calc$<$/tt$>$$<$/a$>$ (external)}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7504}
\begin{quote}
Post\+CSS plugin to reduce calc() \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7505}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/colormin\char`\"{}$>$$<$tt$>$postcss-\/colormin$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7505}
\begin{quote}
Minify colors in your CSS files with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7506}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/convert-\/values\char`\"{}$>$$<$tt$>$postcss-\/convert-\/values$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7506}
\begin{quote}
Convert values with Post\+CSS (e.\+g. ms -\/$>$ s) \end{quote}
This plugin is loaded with the following configuration\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{    length: false}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7507}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/discard-\/comments\char`\"{}$>$$<$tt$>$postcss-\/discard-\/comments$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7507}
\begin{quote}
Discard comments in your CSS files with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7508}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/discard-\/duplicates\char`\"{}$>$$<$tt$>$postcss-\/discard-\/duplicates$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7508}
\begin{quote}
Discard duplicate rules in your CSS files with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7509}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/discard-\/empty\char`\"{}$>$$<$tt$>$postcss-\/discard-\/empty$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7509}
\begin{quote}
Discard empty rules and values with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7510}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/discard-\/overridden\char`\"{}$>$$<$tt$>$postcss-\/discard-\/overridden$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7510}
\begin{quote}
Post\+CSS plugin to discard overridden @keyframes or @counter-\/style. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7511}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/merge-\/longhand\char`\"{}$>$$<$tt$>$postcss-\/merge-\/longhand$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7511}
\begin{quote}
Merge longhand properties into shorthand with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7512}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/merge-\/rules\char`\"{}$>$$<$tt$>$postcss-\/merge-\/rules$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7512}
\begin{quote}
Merge CSS rules with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7513}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/minify-\/font-\/values\char`\"{}$>$$<$tt$>$postcss-\/minify-\/font-\/values$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7513}
\begin{quote}
Minify font declarations with Post\+CSS \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7514}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/minify-\/gradients\char`\"{}$>$$<$tt$>$postcss-\/minify-\/gradients$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7514}
\begin{quote}
Minify gradient parameters with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7515}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/minify-\/params\char`\"{}$>$$<$tt$>$postcss-\/minify-\/params$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7515}
\begin{quote}
Minify at-\/rule params with Post\+CSS \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7516}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/minify-\/selectors\char`\"{}$>$$<$tt$>$postcss-\/minify-\/selectors$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7516}
\begin{quote}
Minify selectors with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7517}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/charset\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/charset$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7517}
\begin{quote}
Add necessary or remove extra charset with Post\+CSS \end{quote}
This plugin is loaded with the following configuration\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{    add: false}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7518}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/display-\/values\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/display-\/values$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7518}
\begin{quote}
Normalize multiple value display syntaxes into single values. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7519}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/positions\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/positions$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7519}
\begin{quote}
Normalize keyword values for position into length values. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7520}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/repeat-\/style\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/repeat-\/style$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7520}
\begin{quote}
Convert two value syntax for repeat-\/style into one value. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7521}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/string\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/string$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7521}
\begin{quote}
Normalize wrapping quotes for CSS string literals. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7522}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/timing-\/functions\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/timing-\/functions$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7522}
\begin{quote}
Normalize CSS animation/transition timing functions. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7523}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/unicode\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/unicode$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7523}
\begin{quote}
Normalize unicode-\/range descriptors, and can convert to wildcard ranges. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7524}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/url\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/url$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7524}
\begin{quote}
Normalize URLs with Post\+CSS \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7525}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/normalize-\/whitespace\char`\"{}$>$$<$tt$>$postcss-\/normalize-\/whitespace$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7525}
\begin{quote}
Trim whitespace inside and around CSS rules \& declarations. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7526}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/ordered-\/values\char`\"{}$>$$<$tt$>$postcss-\/ordered-\/values$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7526}
\begin{quote}
Ensure values are ordered consistently in your CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7527}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/reduce-\/initial\char`\"{}$>$$<$tt$>$postcss-\/reduce-\/initial$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7527}
\begin{quote}
Reduce initial definitions to the actual initial value, where possible. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7528}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/reduce-\/transforms\char`\"{}$>$$<$tt$>$postcss-\/reduce-\/transforms$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7528}
\begin{quote}
Reduce transform functions with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7529}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/svgo\char`\"{}$>$$<$tt$>$postcss-\/svgo$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7529}
\begin{quote}
Optimise inline SVG with Post\+CSS. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7530}{}\doxysubsection{$<$a href=\char`\"{}https\+://github.\+com/cssnano/cssnano/tree/master/packages/postcss-\/unique-\/selectors\char`\"{}$>$$<$tt$>$postcss-\/unique-\/selectors$<$/tt$>$$<$/a$>$}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7530}
\begin{quote}
Ensure CSS selectors are unique. \end{quote}
This plugin is loaded with its default configuration.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7531}{}\doxysection{Contributors}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7531}
See \href{https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md}{\texttt{ CONTRIBUTORS.\+md}}.\hypertarget{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7532}{}\doxysection{License}\label{md_sfcode_node_modules_cssnano_preset_default_README_autotoc_md7532}
MIT © \href{http://beneb.info}{\texttt{ Ben Briggs}} 