cssnano-preset-default
Advanced tools
Comparing version
{ | ||
"name": "cssnano-preset-default", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"main": "src/index.js", | ||
@@ -19,3 +19,3 @@ "types": "types/index.d.ts", | ||
"postcss-colormin": "^7.0.1", | ||
"postcss-convert-values": "^7.0.1", | ||
"postcss-convert-values": "^7.0.2", | ||
"postcss-discard-comments": "^7.0.1", | ||
@@ -60,3 +60,3 @@ "postcss-discard-duplicates": "^7.0.0", | ||
"devDependencies": { | ||
"postcss": "^8.4.38" | ||
"postcss": "^8.4.39" | ||
}, | ||
@@ -63,0 +63,0 @@ "peerDependencies": { |
@@ -9,3 +9,3 @@ export = defaultPreset; | ||
declare function defaultPreset(opts?: Options & AutoprefixerOptions & BrowserslistOptions): { | ||
plugins: [import('postcss').PluginCreator<any>, Options[keyof Options]][]; | ||
plugins: [import("postcss").PluginCreator<any>, Options[keyof Options]][]; | ||
}; | ||
@@ -15,6 +15,9 @@ declare namespace defaultPreset { | ||
} | ||
type SimpleOptions<OptionsExtends extends object | void = void> = false | (OptionsExtends & { | ||
exclude?: true; | ||
}); | ||
type Options = { | ||
cssDeclarationSorter?: SimpleOptions<{ | ||
order?: ("alphabetical" | "concentric-css" | "smacss") | ((propertyNameA: string, propertyNameB: string) => 0 | 1 | -1) | undefined; | ||
keepOverrides?: boolean | undefined; | ||
order?: ("alphabetical" | "concentric-css" | "smacss") | ((propertyNameA: string, propertyNameB: string) => -1 | 0 | 1) | undefined; | ||
keepOverrides?: boolean; | ||
} | undefined> | undefined; | ||
@@ -53,6 +56,3 @@ discardComments?: SimpleOptions<postcssDiscardComments.Options> | undefined; | ||
}; | ||
type BrowserslistOptions = Pick<import('browserslist').Options, 'stats' | 'path' | 'env'>; | ||
type SimpleOptions<OptionsExtends extends void | object = void> = false | (OptionsExtends & { | ||
exclude?: true; | ||
}); | ||
type BrowserslistOptions = Pick<import("browserslist").Options, "stats" | "path" | "env">; | ||
import postcssDiscardComments = require("postcss-discard-comments"); | ||
@@ -59,0 +59,0 @@ import postcssReduceInitial = require("postcss-reduce-initial"); |
Sorry, the diff of this file is not supported yet
25706
0.1%