我使用postcss-cssnext,在我webpack.config我刪除autoprefixer如何添加瀏覽器列表cssnext
postcss: [autoprefixer({ browsers: ['last 2 versions'] }) ],
,其中包括cssnext。我知道cssnext已經包含autoprefixer,所以我們不需要兩者都包含在內。我只是想知道我是如何將browserslist傳遞給cssnext的?這是我目前有:
postcss: [cssnext()],