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

Conversation

bertiful
Copy link
Contributor

What are you trying to accomplish with this PR?

Fixes #535.

When running yarn build or yarn deploy, CSS selectors containing a z-index value will be updated to z-index: 1. This is due to the CSSNano plugin rebasing these values upon production build.

For more information: http://cssnano.co/optimisations/zindex/

By setting the zindex property to false, we can omit this change upon build.

Checklist

For maintainers:

  • I have 🎩'd these changes.

@bertiful bertiful requested a review from t-kelly May 11, 2018 22:53
@bertiful bertiful self-assigned this May 11, 2018
plugins: [autoprefixer, cssnano],
plugins: [
autoprefixer,
cssnano({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to do one better and make a config for the whole object in slate-tools.config.js?

@bertiful bertiful merged commit 46651a0 into master May 14, 2018
@bertiful bertiful deleted the add-cssnano-zindex branch May 14, 2018 18:22
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants