From f138c963257b36263c1abc38fb032bff3105eaa0 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 30 Oct 2023 16:46:17 +0800 Subject: added plugin: postcssImport, postcssNested --- postcss.config.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'postcss.config.js') diff --git a/postcss.config.js b/postcss.config.js index be079ffd..24084af5 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -10,18 +10,22 @@ const pixrem = require('pixrem') const doiuse = require('doiuse') const postcssFixes = require('postcss-fixes') const rucksackCss = require('rucksack-css') +const postcssImport = require('postcss-import') +const postcssNested = require('postcss-nested') module.exports = { plugins: [ - cssnano({ preset: 'default' }), - postcssPresetEnv(), - postcssWillChange(), - autoprefixer(), - postcssColorRgbaFallback(), - postcssPseudoelements(), - postcssVmin(), - doiuse(), - postcssFixes(), - rucksackCss(), + cssnano({ preset: 'default' }), + postcssPresetEnv(), + postcssWillChange(), + autoprefixer(), + postcssColorRgbaFallback(), + postcssPseudoelements(), + postcssVmin(), + doiuse(), + postcssFixes(), + rucksackCss(), + postcssImport(), + postcssNested(), ], -}; +}; \ No newline at end of file -- cgit v1.2.3