Skip to content

Commit

Permalink
Merge pull request #1899 from kobotoolbox/browserslist
Browse files Browse the repository at this point in the history
Enhancement: add browserslist configuration
  • Loading branch information
jnm authored Dec 10, 2018
2 parents 63968cc + 31a6981 commit 219592a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Browsers that we support:
# https://browserl.ist/?q=last+2+major+versions%2C+%3E+1%25%2C+not+dead%2C+IE+11%2C+Firefox+ESR

last 2 major versions
> 1%
not dead
IE 11
Firefox ESR
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ As this is a Django project, you may find the admin panel at `<kpi base url>/adm

Icons
-----
All project icons are kept in `jsapp/svg-icons/`. Adding new icon requires adding new `svg` file here and regenerating icons with `npm run generate-icons`. Filenames are used for icon font classnames, e.g. `.k-icon-arrow-last` for `arrow-last.svg` (please use kebab-case). You can see all available icons by running `npm run show-icons` - it will open a list in your browser.
All project icons are kept in `jsapp/svg-icons/`. Adding new icon requires adding new `svg` file here and regenerating icons with `npm run generate-icons`. Filenames are used for icon font classnames, e.g. `.k-icon-arrow-last` for `arrow-last.svg` (please use kebab-case). You can see all available icons by running `npm run show-icons` - it will open a list in your browser.

Supported Browsers
------------------
See [browsers list config](./.browserslistrc)
File renamed without changes.
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 219592a

Please sign in to comment.