Fixed gradients on buttons not showing up correctly.
Adjusted some CSSnano options.
This commit is contained in:
parent
cbd683071e
commit
2e20c23789
1 changed files with 12 additions and 5 deletions
15
build.js
15
build.js
|
@ -35,10 +35,17 @@ 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 = {
|
||||
|
|
Loading…
Reference in a new issue