Skip to content

Instantly share code, notes, and snippets.

@phun-ky
Created February 6, 2018 20:34
Show Gist options
  • Save phun-ky/649d7dc4589186a973be8cdc01e2f033 to your computer and use it in GitHub Desktop.
Save phun-ky/649d7dc4589186a973be8cdc01e2f033 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: { exclude: 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: { exclude: 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