Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

fix(htmlmin): disable the removeOptionalTags option. #1110

Merged
merged 1 commit into from
Jun 17, 2015
Merged

fix(htmlmin): disable the removeOptionalTags option. #1110

merged 1 commit into from
Jun 17, 2015

Conversation

rebelliard
Copy link
Contributor

Enabling HTML minifier's removeOptionalTags option alongside libraries like the AngularUI Router causes iOS 8 devices to throw an TypeError: Attempted to assign to readonly property error. See screenshot here.

This obscure iOS8 ```TypeErroris a [known issue](https://github.com/angular/angular.js/issues/9128) in AngularJS, but on some cases, the fix is just to [disable removeOptionalTags](https://github.com/angular/angular.js/issues/9128#issuecomment-111648953) fromhtmlmin`. As such, it shouldn't be enabled by default here.

@arthurvr
Copy link
Member

Yeah. It doesn't save us sooo much bytes so I'd rather save people this pain. 👍

kevva added a commit that referenced this pull request Jun 17, 2015
fix(htmlmin): disable the removeOptionalTags option.
@kevva kevva merged commit ec7f966 into yeoman:master Jun 17, 2015
@kevva
Copy link
Member

kevva commented Jun 17, 2015

👍, 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.

None yet

3 participants