cssnano-preset-advanced
Advanced tools
Comparing version 5.1.12 to 5.2.0
{ | ||
"name": "cssnano-preset-advanced", | ||
"version": "5.1.12", | ||
"version": "5.2.0", | ||
"main": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"description": "Advanced optimisations for cssnano; may or may not break your CSS!", | ||
"files": [ | ||
"LICENSE-MIT", | ||
"src" | ||
"src", | ||
"types" | ||
], | ||
@@ -13,7 +15,7 @@ "license": "MIT", | ||
"autoprefixer": "^10.3.7", | ||
"cssnano-preset-default": "^5.1.12", | ||
"postcss-discard-unused": "^5.0.3", | ||
"postcss-merge-idents": "^5.0.3", | ||
"postcss-reduce-idents": "^5.0.3", | ||
"postcss-zindex": "^5.0.2" | ||
"cssnano-preset-default": "^5.2.0", | ||
"postcss-discard-unused": "^5.1.0", | ||
"postcss-merge-idents": "^5.1.0", | ||
"postcss-reduce-idents": "^5.1.0", | ||
"postcss-zindex": "^5.1.0" | ||
}, | ||
@@ -20,0 +22,0 @@ "author": { |
@@ -9,2 +9,12 @@ 'use strict'; | ||
/** @typedef { | ||
{autoprefixer?: autoprefixer.Options, | ||
discardUnused?: false | import('postcss-discard-unused').Options & { exclude?: true}, | ||
mergeIdents?: false | { exclude?: true}, | ||
reduceIdents?:false | import('postcss-reduce-idents').Options & { exclude?: true}, | ||
zindex?: false | import('postcss-zindex').Options & { exclude?: true}, | ||
}} AdvancedOptions */ | ||
/** @typedef {import('cssnano-preset-default').Options & AdvancedOptions} Options */ | ||
/** @type {Options} */ | ||
const defaultOpts = { | ||
@@ -19,2 +29,3 @@ autoprefixer: { | ||
/** @type {[import('postcss').PluginCreator<any>, boolean | Record<string, any> | undefined][]} */ | ||
const plugins = [ | ||
@@ -21,0 +32,0 @@ ...defaultPreset(options).plugins, |
27185
5
55
Updatedpostcss-merge-idents@^5.1.0
Updatedpostcss-reduce-idents@^5.1.0
Updatedpostcss-zindex@^5.1.0