Skip to content

Instantly share code, notes, and snippets.

@phun-ky
Created February 6, 2018 20:13
Show Gist options
  • Save phun-ky/10f0f4a81697275e647f6e86c2f78dbe to your computer and use it in GitHub Desktop.
Save phun-ky/10f0f4a81697275e647f6e86c2f78dbe 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 },
autoprefixer: false,
calc: false,
colormin: false,
convertValues: false,
discardDuplicates: true,
discardEmpty: true,
discardOverridden: true,
discardUnused: true,
mergeIdents: false,
mergeLonghand: false,
mergeRules: false,
minifyFontValues: false,
minifyGradients: false,
minifyParams: false,
minifySelectors: false,
normalizeCharset: false,
normalizeDisplayValues: false,
normalizePositions: false,
normalizeRepeatStyle: false,
normalizeString: false,
normalizeTimingFunctions: false,
normalizeUnicode: false,
normalizeUrl: false,
normalizeWhitespace: false,
orderedValues: false,
reduceIdents: false,
reduceInitial: false,
reduceTransforms: false,
svgo: false,
uniqueSelectors: false,
zindex: false
}
]
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment