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

Fix IE8 in the dist/ compiled files #1035

Merged
merged 2 commits into from
Oct 17, 2018
Merged

Fix IE8 in the dist/ compiled files #1035

merged 2 commits into from
Oct 17, 2018

Conversation

NickColley
Copy link
Contributor

@NickColley NickColley commented Oct 16, 2018

Fixes #1033

Since the files in dist/ are compressed, Uglify will break IE8 support by default.

This pull request enables IE8 mode.

I'm not sure if there's a way we can ensure that this does not break in the future without some kind of dist test page.

We can hope that the Uglify project does not remove IE8 support without it silently failing.

I will leave it up for discussion if we need to do more to protect ourselves against that risk.

I have tested this by placing the built files in JSbin

Current build

screen shot 2018-10-16 at 16 55 13

Build generated from this PR npm run build:dist

screen shot 2018-10-16 at 16 54 48

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1035 October 16, 2018 15:59 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1035 October 16, 2018 16:18 Inactive
Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

💯

@NickColley NickColley merged commit 513a5cb into master Oct 17, 2018
@NickColley NickColley deleted the dist-ie8-fix branch October 17, 2018 09:04
@kr8n3r kr8n3r mentioned this pull request Nov 1, 2018
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