Skip to content

Commit

Permalink
add browserslist file and configure postcss to use it through autopre…
Browse files Browse the repository at this point in the history
…fixer
  • Loading branch information
magicznyleszek committed Jul 29, 2018
1 parent 99be58c commit d59aa9b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Browsers that we support

last 2 major versions
> 1%
maintained node versions
not dead
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"devDependencies": {
"alertifyjs": "^1.9.0",
"async": "^1.4.2",
"autoprefixer": "^7.1.1",
"autoprefixer": "^9.0.1",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-loader": "^7.1.4",
Expand Down Expand Up @@ -51,7 +51,7 @@
"object-assign": "^4.1.1",
"opn-cli": "^3.1.0",
"postcss": "^6.0.22",
"postcss-loader": "^2.1.5",
"postcss-loader": "^2.1.6",
"prop-types": "^15.6.1",
"q": "^1.4.1",
"react": "^16.4.0",
Expand Down
5 changes: 5 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [
require('autoprefixer')
]
}
2 changes: 1 addition & 1 deletion webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var defaultOptions = {
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
use: ['style-loader', 'css-loader', 'postcss-loader']
},
{
test: /\.scss$/,
Expand Down

0 comments on commit d59aa9b

Please sign in to comment.