From 2e20c237893f2774ee02dd9b4b327d15ae805879 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 19 Jan 2024 15:32:30 +0000 Subject: [PATCH] Fixed gradients on buttons not showing up correctly. Adjusted some CSSnano options. --- build.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/build.js b/build.js index 0347006..91bac6b 100644 --- a/build.js +++ b/build.js @@ -35,11 +35,18 @@ const buildTasks = { // PREP const config = JSON.parse(fs.readFileSync(configFile)); -const postcssPlugins = []; -if(!isDebugBuild) postcssPlugins.push(require('cssnano')); -postcssPlugins.push(require('autoprefixer')({ - remove: false, -})); +const postcssPlugins = [ require('autoprefixer')({ remove: false }) ]; +if(!isDebugBuild) + postcssPlugins.push(require('cssnano')({ + preset: [ + 'cssnano-preset-default', + { + minifyGradients: false, + reduceIdents: false, + zindex: true, + } + ], + })); const swcJscOptions = { target: 'es5',