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

Is there any way to disable this in development? #6

Closed
simonexmachina opened this issue Jan 26, 2015 · 2 comments · Fixed by #7
Closed

Is there any way to disable this in development? #6

simonexmachina opened this issue Jan 26, 2015 · 2 comments · Fixed by #7

Comments

@simonexmachina
Copy link

I've tried settings browsers: process.env.NODE_ENV === 'production' ? ['last 2 versions'] : [] but the AutoprefixerFilter is still showing 1468ms in the Slowest Trees table.

@kimroen
Copy link
Owner

kimroen commented Jan 31, 2015

Hi there! Sorry about the late reply.

There was actually no way of doing what you're asking up to this point, because the options were dumb and were just passed straight on to Autoprefixer itself.

I added an option for it: You can pass in enabled: false to selectively disable Autoprefixer. There's an example kind of like you asked for in the PR for it: #7

I used process.env.EMBER_ENV though, you might need to adjust.

This is available with autoprefixer 0.4.0.

@simonexmachina
Copy link
Author

Awesome, thanks!

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 a pull request may close this issue.

2 participants