Copied CSSnano options.
This commit is contained in:
parent
418efb24c1
commit
433b00e93b
1 changed files with 12 additions and 5 deletions
17
build.js
17
build.js
|
@ -37,11 +37,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: 'es2021',
|
||||
|
|
Loading…
Reference in a new issue