You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -332,6 +330,31 @@ within the CSS directly as an annotation comment.
332
330
}
333
331
```
334
332
333
+
### Autoprefixing
334
+
335
+
**webpack.config.js**
336
+
```js
337
+
{
338
+
test:/\.css$/,
339
+
use: [
340
+
'style-loader',
341
+
'css-loader',
342
+
{
343
+
loader:'postcss-loader',
344
+
options: {
345
+
ident:'postcss',
346
+
plugins: [
347
+
require('autoprefixer')({...options}),
348
+
...,
349
+
]
350
+
}
351
+
}
352
+
]
353
+
}
354
+
```
355
+
356
+
> :warning:[`postcss-preset-env`](https://github.com/csstools/postcss-preset-env) includes [`autoprefixer`](https://github.com/postcss/autoprefixer), so adding it separately is not necessary if you already use the preset.
357
+
335
358
### `CSS Modules`
336
359
337
360
This loader [cannot be used] with [CSS Modules] out of the box due
0 commit comments