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
17
build.js
17
build.js
|
@ -35,11 +35,18 @@ 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 = {
|
||||||
target: 'es5',
|
target: 'es5',
|
||||||
|
|
Loading…
Reference in a new issue