Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Set CSSNano z-index to false in production config #546

Merged
merged 2 commits into from
May 14, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add cssnano config
  • Loading branch information
Chris Berthe committed May 14, 2018
commit a78d842e94c48b04b1d9a5e990d8742d22da0d54
6 changes: 6 additions & 0 deletions packages/slate-tools/slate-tools.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = generate({
description: 'A path to a valid Babel configuration',
type: 'path',
},
{
id: 'cssnanoSettings',
default: {zindex: false},
description: 'Optimization settings for the cssnano plugin',
type: 'object',
},
{
id: 'promptSettings',
description:
Expand Down
7 changes: 1 addition & 6 deletions packages/slate-tools/tools/webpack/config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ module.exports = merge(
options: {
ident: 'postcss',
sourceMap: true,
plugins: [
autoprefixer,
cssnano({
zindex: false,
}),
],
plugins: [autoprefixer, cssnano(config.cssnanoSettings)],
},
},
{loader: 'sass-loader', options: {sourceMap: true}},
Expand Down