File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,28 @@ module.exports = {
127127}
128128```
129129
130+ ### Autoprefixer
131+
132+ We don’t recommend to put Autoprefixer’s browsers to plugin options.
133+ Webpack ` css-loader ` contains ` cssnano ` . It uses Autoprefixer too.
134+
135+ As result you will have different browsers in Autoprefixer
136+ and CSS minification. At result, ` css-loader ` could clean some prefixes
137+ in production.
138+
139+ We recommend to put browsers in ` browserslist ` config in project root:
140+
141+ ```
142+ last 2 versions
143+ ie 11
144+ ```
145+
146+ As result other tools (for example, Stylelint) will use same browsers settings.
147+
148+ Also, [ please vote] for disable second Autoprefixer in ` css-loader ` .
149+
150+ [ please vote ] : https://github.com/webpack/css-loader/issues/281
151+
130152## Options
131153
132154### Syntaxes
You can’t perform that action at this time.
0 commit comments