Skip to content

Commit 6db2847

Browse files
committed
fix(webpack.config.*.js): fix tests after autoprefixer upgrade
1 parent d28bf68 commit 6db2847

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

config/webpack.config.dev.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,14 @@ module.exports = {
210210
options: {
211211
// Necessary for external CSS imports to work
212212
// https://github.com/facebook/create-react-app/issues/2677
213-
ident: 'postcss',
214-
plugins: () => [
215-
require('postcss-flexbugs-fixes'),
216-
autoprefixer({
217-
flexbox: 'no-2009',
218-
}),
219-
],
213+
postcssOptions: {
214+
plugins: () => [
215+
require('postcss-flexbugs-fixes'),
216+
autoprefixer({
217+
flexbox: 'no-2009',
218+
}),
219+
],
220+
},
220221
},
221222
},
222223
],

config/webpack.config.prod.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ module.exports = {
261261
options: {
262262
// Necessary for external CSS imports to work
263263
// https://github.com/facebook/create-react-app/issues/2677
264-
ident: 'postcss',
265-
plugins: () => [
266-
require('postcss-flexbugs-fixes'),
267-
autoprefixer({
268-
flexbox: 'no-2009',
269-
}),
270-
],
264+
postcssOptions: {
265+
plugins: () => [
266+
require('postcss-flexbugs-fixes'),
267+
autoprefixer({
268+
flexbox: 'no-2009',
269+
}),
270+
],
271+
},
271272
},
272273
},
273274
],

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"object-assign": "4.1.1",
5050
"optimize-css-assets-webpack-plugin": "5.0.3",
5151
"postcss-flexbugs-fixes": "4.2.1",
52-
"postcss-loader": "3.0.0",
52+
"postcss-loader": "4.0.3",
5353
"postcss-safe-parser": "4.0.2",
5454
"promise": "8.1.0",
5555
"prompt": "1.0.0",
@@ -141,4 +141,3 @@
141141
}
142142
}
143143
}
144-

0 commit comments

Comments
 (0)