Skip to content

Commit a800152

Browse files
committed
Replace postcss-next with postcss-preset-env
1 parent 106f89b commit a800152

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"npm": ">=5.0.0",
3535
"yarn": ">=1.0.0"
3636
},
37+
"browserslist": [
38+
"last 4 versions"
39+
],
3740
"main": "main.js",
3841
"scripts": {
3942
"prod": "webpack --mode production --config webpack.build.config.js && electron --noDevServer .",
@@ -57,10 +60,10 @@
5760
"file-loader": "^5.0.2",
5861
"html-webpack-plugin": "^3.2.0",
5962
"mini-css-extract-plugin": "^0.8.0",
60-
"postcss-cssnext": "^3.1.0",
6163
"postcss-import": "^12.0.1",
6264
"postcss-loader": "^3.0.0",
6365
"postcss-nested": "^4.2.1",
66+
"postcss-preset-env": "^6.7.0",
6467
"postcss-pxtorem": "^4.0.1",
6568
"style-loader": "^1.0.1",
6669
"webpack": "^4.41.2",

postcss.config.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
module.exports = {
22
plugins: {
3-
'postcss-cssnext': {
4-
browsers: [
5-
'Firefox >= 58',
6-
'Chrome >= 62',
7-
'ie >= 10',
8-
'last 4 versions',
9-
'Safari >= 9'
10-
]
11-
},
123
'postcss-import': {},
4+
'postcss-nested': {},
5+
'postcss-preset-env': {},
136
'postcss-pxtorem': {
147
rootValue: 16,
158
unitPrecision: 5,
@@ -18,7 +11,6 @@ module.exports = {
1811
replace: true,
1912
mediaQuery: false,
2013
minPixelValue: 0
21-
},
22-
'postcss-nested': {}
14+
}
2315
}
2416
}

0 commit comments

Comments
 (0)