Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Disable CSS auto-prefixes for old IE#5168

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
martinfojtik:patch-2
Jan 23, 2018
Merged

Disable CSS auto-prefixes for old IE#5168
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
martinfojtik:patch-2

Conversation

@martinfojtik
Copy link
Copy Markdown
Contributor

Summary of Changes

I think a majority of user use modern browsers for running this debugger, so some prefixes for really old browsers are not needed.

Test Plan

Screenshots/Videos (OPTIONAL)

@lukaszsobek
Copy link
Copy Markdown
Contributor

What would you say were the benefits of the change?

@martinfojtik
Copy link
Copy Markdown
Contributor Author

@lukaszsobek I think there will be a very very tiny increase in building speed, smaller build size. And there will be no old prefixes, which are not needed for newest browsers.

Comment thread postcss.config.js Outdated
require("postcss-bidirection"),
require("autoprefixer"),
require("autoprefixer")({
browsers: ['> 3%', 'not ie <= 10'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Haha yeah. Let’s do latest chrome and latest Firefox

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should I change this to ['last 2 Firefox versions', 'last 2 Chrome versions'] ?

note: browser list is there: https://github.com/ai/browserslist#queries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sure

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread postcss.config.js
require("postcss-bidirection"),
require("autoprefixer"),
require("autoprefixer")({
browsers: ['last 2 Firefox versions', 'last 2 Chrome versions'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be "browserslist: [ ..." rather than "browsers: [ ..."?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cool nice work!

Comment thread postcss.config.js
require("postcss-bidirection"),
require("autoprefixer"),
require("autoprefixer")({
browsers: ['last 2 Firefox versions', 'last 2 Chrome versions'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

While we technically only support Firefox and Chrome you could just make this the 'last 2 version' value instead of explicitly just Firefox/Chrome.

@jasonLaster
Copy link
Copy Markdown
Contributor

Looks good to me. I prefer being explicit because who knows what other features other browsers are missing :)

@jasonLaster jasonLaster merged commit 8e6c0c0 into firefox-devtools:master Jan 23, 2018
jasonLaster pushed a commit to jasonLaster/debugger.html that referenced this pull request Jan 25, 2018
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.

5 participants