From c5a5384e846f242e901e859fe600d695d8990a9a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:20:49 +0800 Subject: legacy browser support via plugins from postcss --- postcss.config.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'postcss.config.js') diff --git a/postcss.config.js b/postcss.config.js index b1cb543d..59b6cd10 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,11 +1,23 @@ const cssnano = require('cssnano') const postcssPresetEnv = require('postcss-preset-env') +const postcssWillChange = require('postcss-will-change') +const autoprefixer = require('autoprefixer') +const postcssColorRgbaFallback = require('postcss-color-rgba-fallback') +const postcssOpacity = require('postcss-opacity') +const postcssPseudoelements = require('postcss-pseudoelements') +const postcssVmin = require('postcss-vmin') +const pixrem = require('pixrem') module.exports = { plugins: [ cssnano({ preset: 'default', }), - postcssPresetEnv({}) + postcssPresetEnv(), + postcssWillChange(), + autoprefixer(), + postcssColorRgbaFallback(), + postcssPseudoelements(), + postcssVmin() ], }; -- cgit v1.2.3