cssnano-preset-advanced 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +4 -2
- package/types/index.d.ts +7 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const defaultOpts = {
|
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
function advancedPreset(opts = {}) {
|
|
26
26
|
const options = Object.assign({}, defaultOpts, opts);
|
|
27
27
|
|
|
28
28
|
/** @type {[import('postcss').PluginCreator<any>, boolean | Record<string, any> | undefined][]} */
|
|
@@ -36,4 +36,6 @@ module.exports = function advancedPreset(opts = {}) {
|
|
|
36
36
|
];
|
|
37
37
|
|
|
38
38
|
return { plugins };
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = advancedPreset;
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export = advancedPreset;
|
|
2
|
+
declare function advancedPreset(opts?: {}): {
|
|
2
3
|
plugins: [import("postcss").PluginCreator<any>, boolean | Record<string, any> | undefined][];
|
|
3
4
|
};
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
declare namespace advancedPreset {
|
|
6
|
+
export { AdvancedOptions, Options };
|
|
7
|
+
}
|
|
8
|
+
type AdvancedOptions = {
|
|
6
9
|
autoprefixer?: autoprefixer.Options;
|
|
7
10
|
discardUnused?: false | import('postcss-discard-unused').Options & {
|
|
8
11
|
exclude?: true;
|
|
@@ -17,5 +20,5 @@ export type AdvancedOptions = {
|
|
|
17
20
|
exclude?: true;
|
|
18
21
|
};
|
|
19
22
|
};
|
|
20
|
-
|
|
23
|
+
type Options = import('cssnano-preset-default').Options & AdvancedOptions;
|
|
21
24
|
import autoprefixer = require("autoprefixer");
|