Fixed deprecated autoprefixer config warning when running build tasks

no issue

Passing browser options directly into `autoprefixer()` has been deprecated in favour of general browserslist configuration in `package.json` or a `.browserslistrc` config file

- moved autoprefixer browsers list into `browserslist` config in `package.json`
- updated `autoprefixer` version
This commit is contained in:
Kevin Ansfield 2019-10-20 16:05:37 +02:00
parent 978ffe0eb6
commit 7ad20d1325
4 changed files with 1051 additions and 356 deletions

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@ function css(done) {
easyimport, easyimport,
customProperties({preserve: false}), customProperties({preserve: false}),
colorFunction(), colorFunction(),
autoprefixer({browsers: ['last 2 versions']}), autoprefixer(),
cssnano() cssnano()
]; ];

View File

@ -46,7 +46,7 @@
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors", "contributors": "https://github.com/TryGhost/Casper/graphs/contributors",
"devDependencies": { "devDependencies": {
"@tryghost/release-utils": "0.3.2", "@tryghost/release-utils": "0.3.2",
"autoprefixer": "9.6.1", "autoprefixer": "9.6.5",
"beeper": "2.0.0", "beeper": "2.0.0",
"cssnano": "4.1.10", "cssnano": "4.1.10",
"gscan": "3.0.0", "gscan": "3.0.0",
@ -83,5 +83,8 @@
"width": 2000 "width": 2000
} }
} }
} },
"browserslist": [
"last 2 versions"
]
} }

1396
yarn.lock

File diff suppressed because it is too large Load Diff