Merge pull request #197 from kognise/refactor/browserslist

Use env-less browserslist, autoprefix docs/style.css
This commit is contained in:
Kognise 2020-05-30 19:12:02 -05:00 committed by GitHub
commit f65e48dc96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -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('.'))
@ -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)

View file

@ -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"