> For the complete documentation index, see [llms.txt](https://gpeterhand.gitbook.io/react/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gpeterhand.gitbook.io/react/dizain/autoprefixer.md).

# PostCSS, Autoprefixer

Плагин для автоматического добавления префиксов для кросс-браузерной верстки

> yarn add postcss-loader autoprefixer

Добавляем postcss-loadr в **webpack.config,js**

```javascript
      ...
      {
        test: /\.css$/,
        use: [
          devMode ? 'style-loader' : MiniCssExtractPlugin.loader,
          'css-loader',
          'postcss-loader'
        ]
      }
      ...
```

Создаем файл  **postcss.config.js**

```javascript
const autoprefixer = require('autoprefixer')

module.exports = { plugins: [autoprefixer] }
```
