Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS autoprefixer (resolves #255) #266

Merged
merged 1 commit into from Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .browserslistrc
@@ -0,0 +1,5 @@
# Supported browsers

last 2 Chrome major versions
last 2 Firefox major versions
last 1 Safari major version
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -57,6 +57,7 @@
"@babel/preset-react": "7.0.0",
"@babel/register": "7.4.0",
"@babel/runtime": "7.4.3",
"autoprefixer": "9.5.1",
"babel-eslint": "10.0.1",
"babel-loader": "8.0.5",
"babel-plugin-lodash": "3.3.4",
Expand Down
8 changes: 3 additions & 5 deletions webpack.config.js
Expand Up @@ -61,11 +61,8 @@ module.exports = opts => {
babelrc: false,
presets: [
['@babel/preset-env', {
targets: [
'last 2 Chrome major versions',
'last 2 Firefox major versions',
'last 1 Safari major version'
],
// Target browsers are specified in .browserslistrc

modules: false,
useBuiltIns: 'usage',
corejs: 2,
Expand Down Expand Up @@ -105,6 +102,7 @@ module.exports = opts => {
options: {
plugins: compact([
require('postcss-icss-values'),
require('autoprefixer'),
!isDev && require('cssnano')()
])
}
Expand Down