From d4f73e985b12c3087134088baaa28c2fc0356101 Mon Sep 17 00:00:00 2001 From: sigveio <6737410+sigveio@users.noreply.github.com> Date: Mon, 6 May 2024 11:26:34 +0200 Subject: [PATCH] feat: add preset for cssnano (#208) Co-authored-by: Jiawen Geng --- src/presets.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/presets.js b/src/presets.js index b896ea8..84209f3 100644 --- a/src/presets.js +++ b/src/presets.js @@ -81,6 +81,14 @@ module.exports = { npmPackages: null, npmGlobalPackages: null, }, + cssnano: { + System: ['OS', 'CPU'], + Binaries: ['Node', 'Yarn', 'npm', 'pnpm', 'bun'], + npmPackages: ['cssnano', 'postcss'], + options: { + duplicates: true, + }, + }, jest: { System: ['OS', 'CPU'], Binaries: ['Node', 'Yarn', 'npm', 'pnpm', 'bun'],