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

View File

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