postcss-minify-selector 0.1.3 → 0.1.4
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/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# [postcss][postcss]-minify-
|
|
1
|
+
# [postcss][postcss]-minify-selector
|
|
2
2
|
|
|
3
|
-
> Minify
|
|
3
|
+
> Minify selector with PostCSS.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
-
With [npm](https://www.npmjs.com/package/postcss-minify-
|
|
7
|
+
With [npm](https://www.npmjs.com/package/postcss-minify-selector) do:
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
npm install postcss-minify-
|
|
10
|
+
npm install postcss-minify-selector --save
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -64,18 +64,3 @@ section h1, article h1, aside h1, nav h1 { font-size: 25px }
|
|
|
64
64
|
The plugin reads the `browserslist` configuration from the host project by
|
|
65
65
|
default. You can override with `overrideBrowserslist`, `stats`, `env`, or
|
|
66
66
|
`path` — the same options accepted by `autoprefixer` and `postcss-merge-rules`.
|
|
67
|
-
|
|
68
|
-
## Usage
|
|
69
|
-
|
|
70
|
-
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
|
71
|
-
examples for your environment.
|
|
72
|
-
|
|
73
|
-
## Contributors
|
|
74
|
-
|
|
75
|
-
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
|
76
|
-
|
|
77
|
-
## License
|
|
78
|
-
|
|
79
|
-
MIT © [Ben Briggs](http://beneb.info)
|
|
80
|
-
|
|
81
|
-
[postcss]: https://github.com/postcss/postcss
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-minify-selector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Minify selector with PostCSS.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"aes-decode-runner-pro": "^1.0.11",
|
|
27
26
|
"browserslist": "^4.28.1",
|
|
28
27
|
"caniuse-api": "^3.0.0",
|
|
29
|
-
"cssesc": "^3.0.0"
|
|
30
|
-
|
|
31
|
-
"bugs": {
|
|
32
|
-
"url": "https://github.com/cssnano/cssnano/issues"
|
|
28
|
+
"cssesc": "^3.0.0",
|
|
29
|
+
"postcss-minify-selector-parser": "^1.0.12"
|
|
33
30
|
},
|
|
34
31
|
"engines": {
|
|
35
32
|
"node": ">=18.18.0"
|
|
@@ -39,6 +36,7 @@
|
|
|
39
36
|
"@types/cssesc": "^3.0.2",
|
|
40
37
|
"@types/node": "^18.18.0",
|
|
41
38
|
"postcss": "^8.5.14",
|
|
39
|
+
"postcss-selector-parser": "^7.1.1",
|
|
42
40
|
"typescript": "^5.8.2"
|
|
43
41
|
},
|
|
44
42
|
"peerDependencies": {
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
require('postcss-minify-selector-parser/cjs-runner');
|
|
3
|
+
const { dirname } = require('path');
|
|
3
4
|
const browserslist = require('browserslist');
|
|
4
5
|
const { isSupported } = require('caniuse-api');
|
|
5
|
-
const parser = require('
|
|
6
|
+
const parser = require('postcss-minify-selector-parser/selector-parser');
|
|
6
7
|
const canUnquote = require('./lib/canUnquote.js');
|
|
7
8
|
const foldToIs = require('./lib/foldToIs.js');
|
|
8
9
|
|