Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Only apply 'safe' optimisations in cssnano #422

Merged
merged 1 commit into from Jan 30, 2016
Merged

Only apply 'safe' optimisations in cssnano #422

merged 1 commit into from Jan 30, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jan 28, 2016

This PR enables the "safe" option by default for the cssnano plugin.

From the cssnano site:

options.safe (bool)

Set this to true to disable advanced optimisations that are not always safe. Currently, this disables custom identifier reduction, z-index rebasing, unused at-rule removal & conversion between absolute length values.

According to the cssnano readme, this will be the default behaviour in cssnano v4 and above. In the meantime, setting this as a default in Elixir should help avoid issues like #412 and #420.

@nhowell
Copy link

nhowell commented Jan 28, 2016

Yes, please. This should be the sensible default. People that want the unsafe optimizations should opt-in.

@JeffreyWay JeffreyWay merged commit ca8cff5 into laravel:master Jan 30, 2016
@JeffreyWay
Copy link
Contributor

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants