postcss-preset-env 7.0.1 → 7.0.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,360 @@
1
+ # Changes to PostCSS Preset Env
2
+
3
+ ### 7.0.2 (December 16, 2021)
4
+
5
+ - Fixed unexpected behaviours when using different versions of `postcss-values-parser` across the plugins [228](https://github.com/csstools/postcss-preset-env/issues/228)
6
+ - Updated `browserlist` to 4.19.1 (minor)
7
+ - Updated `caniuse-lite` to `1.0.30001287` (minor)
8
+ - Updated `css-blank-pseudo` to `3.0.0` (major)
9
+ - Updated `css-has-pseudo` to `3.0.0` (major)
10
+ - Updated `css-prefers-color-scheme` to `6.0.0` (major)
11
+ - Updated `postcss-color-functional-notation` to `4.1.0` (minor)
12
+ - Updated `postcss-color-hex-alpha` to `8.0.1` (patch)
13
+ - Updated `postcss-color-rebeccapurple` to `7.0.1` (patch)
14
+ - Updated `postcss-custom-properties` to `12.0.1` (patch)
15
+ - Updated `postcss-dir-pseudo-class` to `6.0.1` (patch)
16
+ - Updated `postcss-double-position-gradients` to `3.0.3` (patch)
17
+ - Updated `postcss-env-function` to `4.0.3` (patch)
18
+ - Updated `postcss-focus-visible` to `6.0.2` (patch)
19
+ - Updated `postcss-focus-within` to `5.0.2` (patch)
20
+ - Updated `postcss-gap-properties` to `3.0.1` (patch)
21
+ - Updated `postcss-image-set-function` to `4.0.3` (patch)
22
+ - Updated `postcss-lab-function` to `4.0.2` (patch)
23
+ - Updated `postcss-logical` to `5.0.1` (patch)
24
+ - Updated `postcss-nesting` to `10.0.3` (patch)
25
+ - Updated `postcss-overflow-shorthand` to `3.0.1` (patch)
26
+ - Updated `postcss-place` to `7.0.2` (patch)
27
+ - Updated `postcss-pseudo-class-any-link` to `7.0.1` (patch)
28
+ - Updated documentation
29
+ - Updated `postcss` to be a peer dependency.
30
+
31
+ ### 7.0.1 (November 19, 2021)
32
+
33
+ - Fixed infinite loop in double-position-gradients [223](https://github.com/csstools/postcss-preset-env/issues/223)
34
+ - Fixed "Unknown word" errors in when parsing CSS values [224](https://github.com/csstools/postcss-preset-env/issues/224)
35
+ - Fixed "undefined" CSS values after transforms with postcss-place [225](https://github.com/csstools/postcss-preset-env/issues/225)
36
+ - Updated `postcss-color-functional-notation` to 4.0.1 (patch)
37
+ - Updated `postcss-double-position-gradients` to 3.0.1 (patch)
38
+ - Updated `postcss-env-function` to 4.0.2 (patch)
39
+ - Updated `postcss-image-set-function` to 4.0.2 (patch)
40
+ - Updated `postcss-lab-function` to 4.0.1 (patch)
41
+ - Updated `postcss-nesting` to 10.0.2 (patch)
42
+ - Updated `postcss-place` to 7.0.1 (patch)
43
+
44
+ ### 7.0.0 (November 16, 2021)
45
+
46
+ - Updated `autoprefixer` to 10.4.0 (major)
47
+ - Updated `browserslist` to 4.17.5 (minor)
48
+ - Updated `caniuse-lite` to 1.0.30001272 (patch)
49
+ - Updated `css-blank-pseudo` to 2.0.0 (major)
50
+ - Updated `css-has-pseudo` to 2.0.0 (major)
51
+ - Updated `css-prefers-color-scheme` to 5.0.0 (major)
52
+ - Updated `cssdb` to 5.0.0 (major)
53
+ - Updated `postcss` to 8.3.0 (major)
54
+ - Updated `postcss-attribute-case-insensitive` to 5.0.0 (major)
55
+ - Updated `postcss-color-functional-notation` to 4.0.0 (major)
56
+ - Updated `postcss-color-hex-alpha` to 8.0.0 (major)
57
+ - Updated `postcss-color-rebeccapurple` to 7.0.0 (major)
58
+ - Updated `postcss-custom-media` to 8.0.0 (major)
59
+ - Updated `postcss-custom-properties` to 12.0.0 (major)
60
+ - Updated `postcss-custom-selectors` to 6.0.0 (major)
61
+ - Updated `postcss-dir-pseudo-class` to 6.0.0 (major)
62
+ - Updated `postcss-double-position-gradients` to 3.0.0 (major)
63
+ - Updated `postcss-env-function` to 4.0.1 (major)
64
+ - Updated `postcss-focus-visible` to 6.0.1 (major)
65
+ - Updated `postcss-focus-within` to 5.0.1 (major)
66
+ - Updated `postcss-font-variant` to 5.0.0 (major)
67
+ - Updated `postcss-gap-properties` to 3.0.0 (major)
68
+ - Updated `postcss-image-set-function` to 4.0.0 (major)
69
+ - Updated `postcss-initial` to 3.0.4 (patch)
70
+ - Updated `postcss-lab-function` to 4.0.0 (major)
71
+ - Updated `postcss-logical` to 5.0.0 (major)
72
+ - Updated `postcss-media-minmax` to 5.0.0 (major)
73
+ - Updated `postcss-nesting` to 10.0.0 (major)
74
+ - Updated `postcss-overflow-shorthand` to 3.0.0 (major)
75
+ - Updated `postcss-page-break` to 3.0.4 (major)
76
+ - Updated `postcss-place` to 7.0.0 (major)
77
+ - Updated `postcss-pseudo-class-any-link` to 7.0.0 (major)
78
+ - Updated `postcss-replace-overflow-wrap` to 4.0.0 (major)
79
+ - Removed `postcss-selector-matches`
80
+ - Removed `postcss-color-gray`
81
+ - Updated support for Node 12+ (major)
82
+
83
+ ### 6.7.0 (July 8, 2019)
84
+
85
+ - Fixed the issue of autoprefixer alerting an upcoming change to the API
86
+ - Updated `autoprefixer` to 9.6.1 (minor)
87
+ - Updated `browserslist` to 4.6.4 (minor)
88
+ - Updated `cssdb` to 4.4.0 (minor)
89
+ - Updated `caniuse-lite` to 1.0.30000981 (patch)
90
+ - Updated `postcss` to 7.0.17 (patch)
91
+ - Updated `postcss-color-hex-alpha` to 5.0.3 (patch)
92
+ - Updated `postcss-custom-media` to 7.0.8 (patch)
93
+ - Updated `postcss-custom-properties` to 8.0.11 (patch)
94
+
95
+ ### 6.6.0 (February 28, 2019)
96
+
97
+ - Moved browserslist detection from using each input file per process to using
98
+ the working directory on intialization, as was implied by the documentation.
99
+ If fixing this previously undocumented behavior causes any harm to existing
100
+ projects, it can be easily rolled back in a subsequent patch. For the
101
+ majority of projects — those with a singular browserslist configuration and
102
+ potentially many individually processed CSS files — we should expect reported
103
+ build times around 35 seconds to drop to less than 2 seconds.
104
+ - Updated `browserslist` to 4.4.2 (minor)
105
+ - Updated `autoprefixer` to 9.4.9 (patch)
106
+ - Updated `caniuse-lite` to 1.0.30000939 (patch)
107
+ - Updated `postcss` to 7.0.14 (patch)
108
+ - Updated `postcss-attribute-case-insensitive` to 4.0.1 (patch)
109
+
110
+ ### 6.5.0 (December 12, 2018)
111
+
112
+ - Added `css-blank-pseudo` polyfill
113
+ - Added `css-has-pseudo` polyfill
114
+ - Updated `autoprefixer` to 9.4.2 (minor)
115
+ - Updated `browserslist` to 4.3.5 (minor)
116
+ - Updated `caniuse-lite` to 1.0.30000918 (patch)
117
+ - Updated `css-prefers-color-scheme` to 3.1.1 (minor, patch for this project)
118
+ - Updated `cssdb` to 4.3.0 (minor)
119
+ - Updated `postcss` to 7.0.6 (patch)
120
+
121
+ ### 6.4.0 (November 6, 2018)
122
+
123
+ - Fixed `exportTo` option to export Custom Media, Custom Properties, and Custom
124
+ Selectors all to the same function, object, or file
125
+ - Added `css-prefers-color-scheme` 3.0.0 (major, non-breaking for this project)
126
+ - Updated `cssdb` to 4.2.0 (minor)
127
+
128
+ ### 6.3.1 (November 5, 2018)
129
+
130
+ - Updated `caniuse-lite` to 1.0.30000905 (patch)
131
+ - Updated `postcss-custom-properties` to 8.0.9 (patch)
132
+
133
+ ### 6.3.0 (October 28, 2018)
134
+
135
+ - Added `postcss-double-position-gradients` 1.0.0 (major, non-breaking for this project)
136
+ - Updated `autoprefixer` to 9.3.1 (minor)
137
+ - Updated `browserslist` to 4.3.4 (patch)
138
+ - Updated `caniuse-lite` to 1.0.30000899 (patch)
139
+ - Updated `cssdb` to 4.1.0 (major, non-breaking for this project)
140
+
141
+ ### 6.2.0 (October 22, 2018)
142
+
143
+ - Updated `autoprefixer` to 9.2.1 (minor)
144
+ - Updated `browserslist` to 4.3.1 (minor)
145
+
146
+ ### 6.1.2 (October 19, 2018)
147
+
148
+ - Updated `browserslist` to 4.2.1 (patch)
149
+ - Updated `caniuse-lite` to 1.0.30000893 (patch)
150
+ - Updated `postcss-custom-media` to 7.0.7 (patch)
151
+
152
+ ### 6.1.1 (October 12, 2018)
153
+
154
+ - Updated: `postcss-custom-media` to 7.0.6 (patch)
155
+
156
+ ### 6.1.0 (October 10, 2018)
157
+
158
+ - Added: `postcss-color-gray`
159
+ - Added: Passing `autoprefixer: false` disables autoprefixer
160
+ - Updated: `browserslist` to 4.2.0 (minor)
161
+ - Updated: `caniuse-lite` to 1.0.30000890 (patch)
162
+
163
+ ### 6.0.10 (October 2, 2018)
164
+
165
+ - Updated: `postcss-custom-properties` to 8.0.8 (patch)
166
+
167
+ ### 6.0.9 (October 2, 2018)
168
+
169
+ - Updated: `browserslist` to 4.1.2 (patch)
170
+ - Updated: `postcss` to 7.0.5 (patch)
171
+ - Updated: `postcss-custom-properties` to 8.0.7 (patch)
172
+
173
+ ### 6.0.8 (October 1, 2018)
174
+
175
+ - Updated: `caniuse-lite` to 1.0.30000888 (patch)
176
+ - Updated: `postcss` to 7.0.4 (patch)
177
+
178
+ **Did you hear? PostCSS Preset Env is now part of Create React App!** 🎉
179
+
180
+ ### 6.0.7 (September 23, 2018)
181
+
182
+ - Updated: `postcss` to 7.0.3 (patch)
183
+ - Updated: `postcss-custom-properties` to 8.0.6 (patch)
184
+
185
+ ### 6.0.6 (September 23, 2018)
186
+
187
+ - Updated: `postcss-custom-media` to 7.0.4 (patch)
188
+
189
+ ### 6.0.5 (September 23, 2018)
190
+
191
+ - Updated: `postcss-color-mod-function` to 3.0.3 (patch)
192
+
193
+ ### 6.0.4 (September 23, 2018)
194
+
195
+ - Updated: `caniuse-lite` to 1.0.30000887 (patch)
196
+ - Updated: `postcss-color-mod-function` to 3.0.2 (patch)
197
+
198
+ ### 6.0.3 (September 21, 2018)
199
+
200
+ - Updated: `caniuse-lite` to 1.0.30000885 (patch)
201
+ - Updated: `postcss-custom-properties` to 8.0.5 (patch)
202
+
203
+ ### 6.0.2 (September 20, 2018)
204
+
205
+ - Fixed: Do not break on an empty `importFrom` object
206
+ - Fixed: Actually run `postcss-env-function`
207
+
208
+ ### 6.0.1 (September 20, 2018)
209
+
210
+ - Fixed: Issue with the `system-ui` font family polyfill by replacing
211
+ `postcss-font-family-system-ui` with an internal polyfill, at least until the
212
+ problem with the original plugin is resolved.
213
+
214
+ ### 6.0.0 (September 20, 2018)
215
+
216
+ - Added: Support for PostCSS 7+
217
+ - Added: Support for PostCSS Values Parser 2+
218
+ - Added: Support for PostCSS Selector Parser 5+
219
+ - Added: Support for Node 6+
220
+ - Updated: All 28 plugins
221
+
222
+ ### 5.4.0 (July 25, 2018)
223
+
224
+ - Added: `toggle` option to override which features are enabled or disabled
225
+ - Deprecated: toggle features with `toggle`, not `features`
226
+
227
+ ### 5.3.0 (July 24, 2018)
228
+
229
+ - Updated: `postcss-lab-function` to v1.1.0 (minor update)
230
+
231
+ ### 5.2.3 (July 21, 2018)
232
+
233
+ - Updated: `postcss-color-mod-function` to v2.4.3 (patch update)
234
+
235
+ ### 5.2.2 (July 13, 2018)
236
+
237
+ - Updated: `autoprefixer` to v8.6.5 (patch update)
238
+ - Updated: `caniuse-lite` to v1.0.30000865 (patch update)
239
+ - Updated: `postcss-color-functional-notation` to v1.0.2 (patch update)
240
+
241
+ ### 5.2.1 (June 26, 2018)
242
+
243
+ - Updated: `caniuse-lite` to v1.0.30000859 (patch update)
244
+ - Updated: `postcss-attribute-case-insensitive` to v3.0.1 (patch update)
245
+
246
+ ### 5.2.0 (June 25, 2018)
247
+
248
+ - Updated: `autoprefixer` to v8.6.3 (minor update)
249
+ - Updated: `caniuse-lite` to v1.0.30000858 (patch update)
250
+ - Updated: `postcss` to 6.0.23 (patch update)
251
+ - Updated: `postcss-nesting` to v6.0.0 (major internal update, non-breaking for this project)
252
+
253
+ ### 5.1.0 (May 21, 2018)
254
+
255
+ - Added: `autoprefixer` option to pass options into autoprefixer
256
+ - Updated: `autoprefixer` to v8.5.0 (minor update)
257
+ - Updated: `browserslist` to v3.2.8 (patch update)
258
+ - Updated: `caniuse-lite` to v1.0.30000844 (patch update)
259
+ - Updated: `postcss-color-functional-notation` to v1.0.1 (patch update)
260
+
261
+ ### 5.0.0 (May 11, 2018)
262
+
263
+ - Added: `autoprefixer`
264
+ - Added: `postcss-color-functional-notation`
265
+ - Added: `postcss-env-function`
266
+ - Added: `postcss-lab-function`
267
+ - Added: `postcss-place`
268
+ - Added: `postcss-gap-properties`
269
+ - Added: `postcss-overflow-shorthand`
270
+ - Updated: `cssdb` to v3.1.0 (major update)
271
+ - Updated: In conformance with cssdb v3, the default stage is now 2
272
+ - Updated: `postcss-attribute-case-insensitive` to v3.0.0 (major update)
273
+ - Updated: `postcss-pseudo-class-any-link` to v5.0.0 (major update)
274
+ - Updated: `postcss-image-set-function` to v2.0.0 (major update)
275
+ - Updated: `postcss-dir-pseudo-class` to v4.0.0 (major update)
276
+ - Updated: `postcss-color-rebeccapurple` to v3.1.0 (minor update)
277
+ - Updated: `postcss` to v6.0.22 (patch update)
278
+ - Updated: `browserslist` to v3.2.7 (patch update)
279
+ - Updated: `caniuse-lite` to v1.0.30000839 (patch update)
280
+
281
+ All plugins now conform to the latest stable releases of `postcss-value-parser`
282
+ v1.5.0 and `postcss-selector-parser` v4.0.0.
283
+
284
+ ### 4.1.0 (April 23, 2018)
285
+
286
+ - Updated: `browserslist` to v3.2.5 (patch update)
287
+ - Updated: `caniuse-lite` to v1.0.30000830 (patch update)
288
+ - Updated: `postcss-apply` to v0.10.0 (minor update)
289
+ - Updated: `postcss-nesting` to v5.0.0 (major update, non-breaking for this project)
290
+
291
+ ### 4.0.0 (April 7, 2018)
292
+
293
+ - Added: `postcss-focus-within`
294
+ - Updated: `postcss-focus-visible` to v3.0.0 (major update)
295
+ - Updated: `caniuse-lite` to v1.0.30000824 (patch update)
296
+ - Updated: `cssdb` to v2.0.0 (major update)
297
+ - Changed: All `specificationId` names to new `id` names for the `cssdb` update.
298
+
299
+ ### 3.5.0 (April 5, 2018)
300
+
301
+ - Fixed: `selectors-matches-pseudo` mapping to allow `:matches` polyfilling
302
+ - Updated: `postcss-dir-pseudo-class` to v3.0.0 (major update, non-breaking for this project)
303
+ - Updated: `postcss-logical` to v1.1.1 (minor update)
304
+ - Updated: `postcss` to v6.0.21 (patch update)
305
+ - Updated: `browserslist` to v3.2.4 (patch update)
306
+ - Updated: `caniuse-lite` to v1.0.30000823 (patch update)
307
+
308
+ ### 3.4.0 (March 18, 2018)
309
+
310
+ - Updated: `browserslist` to v3.2.0 (minor update)
311
+ - Updated: `postcss` to v6.0.20 (patch update)
312
+ - Updated: `postcss-image-set-polyfill` to `@csstools/postcss-image-set-function` (hopefully temporarily)
313
+
314
+ ### 3.3.0 (March 16, 2018)
315
+
316
+ - Updated: `postcss-apply` to v0.9.0 (minor update)
317
+ - Updated: `browserslist` to v3.1.2 (patch update)
318
+ - Updated: `caniuse-lite` to v1.0.30000815 (patch update)
319
+ - Updated: distribution to cjs and es bundles
320
+
321
+ ### 3.2.2 (February 27, 2018)
322
+
323
+ - Updated: `postcss-color-mod-function` to v2.4.2 (patch update)
324
+
325
+ ### 3.2.1 (February 21, 2018)
326
+
327
+ - Updated: Use the latest tested version of all dependencies
328
+
329
+ ### 3.2.0 (February 18, 2018)
330
+
331
+ - Added: `postcss-page-break` which has moved here from Autoprefixer
332
+
333
+ ### 3.1.0 (February 17, 2018)
334
+
335
+ - Added: `postcss-focus-visible`
336
+
337
+ ### 3.0.0 (February 16, 2018)
338
+
339
+ - Updated: `postcss-color-mod-function` to v2.4 (minor update)
340
+ - Updated: `postcss-custom-properties` to v7.0 (major update)
341
+
342
+ ### 2.2.0 (February 14, 2018)
343
+
344
+ - Updated: `browserslist` to v3.1 (major update)
345
+ - Updated: `postcss-color-mod-function` to v2.3 (minor update)
346
+ - Improved: cleaned up one reusable variable and added a few tests
347
+
348
+ ### 2.1.0 (January 22, 2018)
349
+
350
+ - Updated: `cssdb` to v1.5 (minor update)
351
+ - Updated: `postcss-color-mod-function` to v2.2 (major update)
352
+ - Updated: `postcss-font-family-system-ui` to v3.0 (repo update)
353
+
354
+ ### 2.0.0 (January 16, 2018)
355
+
356
+ - Initial version
357
+
358
+ ### 1.0.0 (December 20, 2017)
359
+
360
+ - Unsupported version accidentally published by a member of the community
package/INSTALL.md ADDED
@@ -0,0 +1,192 @@
1
+ # Installing PostCSS Preset Env
2
+
3
+ [PostCSS Preset Env] runs in all Node environments, with special instructions for:
4
+
5
+ | [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) | [Rollup](#rollup) |
6
+ | --- | --- | --- | --- | --- | --- | --- |
7
+
8
+ ## Node
9
+
10
+ Add [PostCSS Preset Env] to your project:
11
+
12
+ ```bash
13
+ npm install postcss-preset-env --save-dev
14
+ ```
15
+
16
+ Use [PostCSS Preset Env] as a [PostCSS] plugin:
17
+
18
+ ```js
19
+ const postcss = require('postcss');
20
+ const postcssPresetEnv = require('postcss-preset-env');
21
+
22
+ postcss([
23
+ postcssPresetEnv(/* pluginOptions */)
24
+ ]).process(YOUR_CSS /*, processOptions */);
25
+ ```
26
+
27
+ ## PostCSS CLI
28
+
29
+ Add [PostCSS CLI] to your project:
30
+
31
+ ```bash
32
+ npm install postcss-cli --save-dev
33
+ ```
34
+
35
+ Use [PostCSS Preset Env] in your `postcss.config.js` configuration file:
36
+
37
+ ```js
38
+ const postcssPresetEnv = require('postcss-preset-env');
39
+
40
+ module.exports = {
41
+ plugins: [
42
+ postcssPresetEnv(/* pluginOptions */)
43
+ ]
44
+ }
45
+ ```
46
+
47
+ ## Webpack
48
+
49
+ Add [PostCSS Loader] to your project:
50
+
51
+ ```bash
52
+ npm install postcss-loader --save-dev
53
+ ```
54
+
55
+ Use [PostCSS Preset Env] in your Webpack configuration:
56
+
57
+ ```js
58
+ const postcssPresetEnv = require('postcss-preset-env');
59
+
60
+ module.exports = {
61
+ module: {
62
+ rules: [
63
+ {
64
+ test: /\.css$/,
65
+ use: [
66
+ 'style-loader',
67
+ { loader: 'css-loader', options: { importLoaders: 1 } },
68
+ {
69
+ loader: 'postcss-loader',
70
+ options: {
71
+ postcssOptions: {
72
+ plugins: [postcssPresetEnv(/* pluginOptions */)],
73
+ },
74
+ },
75
+ },
76
+ ],
77
+ },
78
+ ],
79
+ },
80
+ };
81
+ ```
82
+
83
+ ## Create React App
84
+
85
+ **PostCSS Preset Env is already bundled with Create React App 2.**
86
+
87
+ For Create React App 1, add [React App Rewired] and [React App Rewire PostCSS]
88
+ to your project:
89
+
90
+ ```bash
91
+ npm install react-app-rewired react-app-rewire-postcss --save-dev
92
+ ```
93
+
94
+ Use [React App Rewire PostCSS] and [PostCSS Preset Env] in your
95
+ `config-overrides.js` file:
96
+
97
+ ```js
98
+ const reactAppRewirePostcss = require('react-app-rewire-postcss');
99
+ const postcssPresetEnv = require('postcss-preset-env');
100
+
101
+ module.exports = config => reactAppRewirePostcss(config, {
102
+ plugins: () => [
103
+ postcssPresetEnv(/* pluginOptions */)
104
+ ]
105
+ });
106
+ ```
107
+
108
+ ## Gulp
109
+
110
+ Add [Gulp PostCSS] to your project:
111
+
112
+ ```bash
113
+ npm install gulp-postcss --save-dev
114
+ ```
115
+
116
+ Use [PostCSS Preset Env] in your Gulpfile:
117
+
118
+ ```js
119
+ const postcss = require('gulp-postcss');
120
+ const postcssPresetEnv = require('postcss-preset-env');
121
+
122
+ gulp.task('css', () => gulp.src('./src/*.css').pipe(
123
+ postcss([
124
+ postcssPresetEnv(/* pluginOptions */)
125
+ ])
126
+ ).pipe(
127
+ gulp.dest('.')
128
+ ));
129
+ ```
130
+
131
+ ## Grunt
132
+
133
+ Add [Grunt PostCSS] to your project:
134
+
135
+ ```bash
136
+ npm install grunt-postcss --save-dev
137
+ ```
138
+
139
+ Use [PostCSS Preset Env] in your Gruntfile:
140
+
141
+ ```js
142
+ const postcssPresetEnv = require('postcss-preset-env');
143
+
144
+ grunt.loadNpmTasks('grunt-postcss');
145
+
146
+ grunt.initConfig({
147
+ postcss: {
148
+ options: {
149
+ processors: [
150
+ postcssPresetEnv(/* pluginOptions */)
151
+ ]
152
+ },
153
+ dist: {
154
+ src: '*.css'
155
+ }
156
+ }
157
+ });
158
+ ```
159
+
160
+ ## Rollup
161
+
162
+ Complete [PostCSS CLI](#postcss-cli) setup.
163
+
164
+ Add [Rollup Plugin PostCSS] to your project:
165
+
166
+ ```bash
167
+ npm install rollup-plugin-postcss --save-dev
168
+ ```
169
+
170
+ Use [Rollup Plugin PostCSS] in your rollup.config.js:
171
+
172
+ ```js
173
+ import postcss from 'rollup-plugin-postcss';
174
+
175
+ module.exports = {
176
+ input: '...',
177
+ output: {...},
178
+ plugins: [
179
+ postcss({/* options */ })
180
+ ]
181
+ };
182
+ ```
183
+
184
+ [Gulp PostCSS]: https://github.com/postcss/gulp-postcss
185
+ [Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
186
+ [PostCSS]: https://github.com/postcss/postcss
187
+ [PostCSS CLI]: https://github.com/postcss/postcss-cli
188
+ [PostCSS Loader]: https://github.com/postcss/postcss-loader
189
+ [PostCSS Preset Env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
190
+ [React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
191
+ [React App Rewired]: https://github.com/timarney/react-app-rewired
192
+ [Rollup Plugin PostCSS]: https://github.com/egoist/rollup-plugin-postcss
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # PostCSS Preset Env [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss]
2
2
 
3
3
  [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-preset-env.svg" height="20">][npm-url]
4
- [<img alt="build status" src="https://github.com/csstools/postcss-preset-env/workflows/test/badge.svg" height="20">][cli-url]
4
+ [<img alt="build status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url]
5
5
  [<img alt="support chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url]
6
6
 
7
7
  [PostCSS Preset Env] lets you convert modern CSS into something most browsers
@@ -95,15 +95,7 @@ Add [PostCSS Preset Env] to your project:
95
95
  npm install postcss-preset-env --save-dev
96
96
  ```
97
97
 
98
- Use [PostCSS Preset Env] to process your CSS:
99
-
100
- ```js
101
- const postcssPresetEnv = require('postcss-preset-env');
102
-
103
- postcssPresetEnv.process(YOUR_CSS /*, processOptions, pluginOptions */);
104
- ```
105
-
106
- Or use it as a [PostCSS] plugin:
98
+ Use [PostCSS Preset Env] as a [PostCSS] plugin:
107
99
 
108
100
  ```js
109
101
  const postcss = require('postcss');
@@ -141,7 +133,7 @@ features.
141
133
 
142
134
  The `features` option enables or disables specific polyfills by ID. Passing
143
135
  `true` to a specific feature ID will enable its polyfill, while passing `false`
144
- will disable it. [List of IDs](https://github.com/csstools/postcss-preset-env/blob/master/src/lib/plugins-by-id.js#L36)
136
+ will disable it. [List of IDs](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/src/lib/plugins-by-id.js#L36)
145
137
 
146
138
  ```js
147
139
  postcssPresetEnv({
@@ -362,8 +354,8 @@ postcssPresetEnv({
362
354
  });
363
355
  ```
364
356
 
365
- [cli-img]: https://github.com/postcss/postcss-preset-env/workflows/test/badge.svg
366
- [cli-url]: https://github.com/postcss/postcss-preset-env/actions/workflows/test.yml?query=workflow/test
357
+ [cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg
358
+ [cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
367
359
  [git-img]: https://img.shields.io/badge/support-chat-blue.svg
368
360
  [git-url]: https://gitter.im/postcss/postcss
369
361
  [npm-img]: https://img.shields.io/npm/v/postcss-preset-env.svg
@@ -374,7 +366,7 @@ postcssPresetEnv({
374
366
  [caniuse]: https://caniuse.com/
375
367
  [cssdb]: https://cssdb.org/
376
368
  [PostCSS]: https://github.com/postcss/postcss
377
- [PostCSS Preset Env]: https://github.com/csstools/postcss-preset-env
369
+ [PostCSS Preset Env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
378
370
  [readme-style-with-preset-env-img]: https://csstools.github.io/postcss-preset-env/readme-style-with-preset-env.svg
379
371
  [readme-style-with-preset-env-url]: https://codepen.io/pen?template=OZRovK
380
372
  [readme-transform-with-preset-env-img]: https://csstools.github.io/postcss-preset-env/readme-transform-with-preset-env.svg