Skip to content

Commit

Permalink
Merge pull request #225 from alfa-laboratory/fix/browserlist-shared-c…
Browse files Browse the repository at this point in the history
…onfig

fix(*): use shared browserslist config for all tools
  • Loading branch information
SiebenSieben authored Jul 3, 2018
2 parents 1d549fb + a0b2b76 commit df68117
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
last 2 versions
ie >= 10
Android >= 4
iOS >= 9
4 changes: 1 addition & 3 deletions postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ function getConfig(mq, path = [], resolve) {
require('postcss-calc')(),
require('postcss-color-function')(),
require('postcss-nested')(),
require('autoprefixer')({
browsers: require('./supporting-browsers')
}),
require('autoprefixer')(),
require('postcss-inherit')
]
};
Expand Down
3 changes: 2 additions & 1 deletion webpack.development.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
process.env.BROWSERSLIST_CONFIG = process.env.BROWSERSLIST_CONFIG || require.resolve('./.browserslistrc');

const webpack = require('webpack');
const path = require('path');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');


module.exports = {
devtool: 'inline-eval-source-map',
module: {
Expand Down
2 changes: 2 additions & 0 deletions webpack.production-builder.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
process.env.BROWSERSLIST_CONFIG = process.env.BROWSERSLIST_CONFIG || require.resolve('./.browserslistrc');

const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
Expand Down

0 comments on commit df68117

Please sign in to comment.