Skip to content

Commit

Permalink
Merge pull request kognise#197 from kognise/refactor/browserslist
Browse files Browse the repository at this point in the history
Use env-less browserslist, autoprefix docs/style.css
  • Loading branch information
kognise authored May 31, 2020
2 parents 00f69d6 + aad0bbe commit f65e48d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const style = () => {
.pipe(endDiff('css variables'))

.pipe(startDiff())
.pipe(postcss([autoprefixer({ env: 'legacy' })]))
.pipe(postcss([autoprefixer()]))
.pipe(endDiff('autoprefixer'))

.pipe(sourcemaps.write('.'))
Expand Down Expand Up @@ -118,7 +118,7 @@ const docs = () => {
// * Process CSS *
.pipe(cssOnly)
.pipe(sourcemaps.init())
.pipe(postcss([cssnano()]))
.pipe(postcss([autoprefixer(), cssnano()]))
.pipe(sourcemaps.write('.'))
.pipe(cssOnly.restore)

Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@
"stylelint": "^13.5.0",
"stylelint-config-standard": "^20.0.0"
},
"browserslist": {
"legacy": [
"defaults AND not android 4.4.3"
]
},
"browserslist": [
"defaults"
],
"files": [
"dist/*.css",
"LICENSE.md"
Expand Down

0 comments on commit f65e48d

Please sign in to comment.