Skip to content

Instantly share code, notes, and snippets.

@phun-ky
Created February 6, 2018 20:41
Show Gist options
  • Save phun-ky/df29dbf15736bb33fe56369c559922a0 to your computer and use it in GitHub Desktop.
Save phun-ky/df29dbf15736bb33fe56369c559922a0 to your computer and use it in GitHub Desktop.
module.exports = {
plugins: [
require('cssnano')({
preset: [
'advanced',
{
autoprefixer: { add: true, exclude: false },
discardComments: { removeAll: true, exclude: false },
calc: { exclude: true },
colormin: { exclude: true },
convertValues: { exclude: true },
discardDuplicates: true,
discardEmpty: true,
discardOverridden: true,
discardUnused: true,
mergeIdents: true,
mergeLonghand: { exclude: true },
mergeRules: true,
minifyFontValues: { exclude: true },
minifyGradients: { exclude: true },
minifyParams: { exclude: true },
minifySelectors: true,
normalizeCharset: true,
normalizeDisplayValues: true,
normalizePositions: true,
normalizeRepeatStyle: true,
normalizeString: { exclude: true },
normalizeTimingFunctions: { exclude: true },
normalizeUnicode: { exclude: true },
normalizeUrl: { exclude: true },
normalizeWhitespace: { exclude: true },
orderedValues: true,
reduceIdents: true,
reduceInitial: true,
reduceTransforms: true,
svgo: { exclude: true },
uniqueSelectors: { exclude: true },
zindex: { exclude: true }
}
]
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment