Copied CSSnano options.

This commit is contained in:
flash 2024-01-19 15:33:41 +00:00
parent 418efb24c1
commit 433b00e93b

View file

@ -37,10 +37,17 @@ const buildTasks = {
// PREP // PREP
const config = JSON.parse(fs.readFileSync(configFile)); const config = JSON.parse(fs.readFileSync(configFile));
const postcssPlugins = []; const postcssPlugins = [ require('autoprefixer')({ remove: false }) ];
if(!isDebugBuild) postcssPlugins.push(require('cssnano')); if(!isDebugBuild)
postcssPlugins.push(require('autoprefixer')({ postcssPlugins.push(require('cssnano')({
remove: false, preset: [
'cssnano-preset-default',
{
minifyGradients: false,
reduceIdents: false,
zindex: true,
}
],
})); }));
const swcJscOptions = { const swcJscOptions = {