Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow browser versions to be configured in config.json #1798

Merged
merged 2 commits into from
Jan 11, 2017

Conversation

oxyc
Copy link
Contributor

@oxyc oxyc commented Jan 10, 2017

As sage is a starter theme it shouldn't make hardcoded assumptions about which browsers are supported. This PR allows users to override the default browser array passed to autoprefixer. It also passes this array on to cssnano to avoid stripping intentional vendor prefixes.

@@ -26,6 +26,7 @@ const config = mergeWithConcat({
watcher: !!argv.watch,
},
watch: [],
browsers: ['last 2 versions', 'android 4', 'opera 12'],
Copy link
Member

Choose a reason for hiding this comment

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

Can you make this line:

  browsers: []

And add those browser versions to config.json instead?

The reason is because arrays are concatenated by mergeWithConcat().

@retlehs retlehs changed the base branch from master to beta2 January 11, 2017 23:02
@retlehs retlehs merged commit d954213 into roots:beta2 Jan 11, 2017
@retlehs
Copy link
Member

retlehs commented Jan 11, 2017

thank you!

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

Successfully merging this pull request may close these issues.

3 participants