summaryrefslogtreecommitdiff
path: root/postcss.config.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-14 15:20:49 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-14 15:20:49 +0800
commitc5a5384e846f242e901e859fe600d695d8990a9a (patch)
tree079d4ccf2ed93dc1f0cae74a6d3b4a42ac387ece /postcss.config.js
parentd261b7aafee0e6e5c7b853cb8dfe609cc0a0ac9e (diff)
legacy browser support via plugins from postcss
Diffstat (limited to 'postcss.config.js')
-rw-r--r--postcss.config.js14
1 files changed, 13 insertions, 1 deletions
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()
],
};