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

Conversation

@westonruter
Copy link
Member

@westonruter westonruter commented Aug 29, 2017

Fixes #4.

  • Add support for all of the other modes that have scripts registered.
  • Support all the mime types each mode recognizes.

@westonruter westonruter changed the title Remove themes from build; add json support Remove unused assets; register likely-used assets Aug 29, 2017
@westonruter westonruter changed the title Remove unused assets; register likely-used assets Remove unused assets; register likely-used assets; allow recognized file types to be edited Aug 29, 2017
// Remap MIME types to ones that CodeMirror modes will recognize.
if ( 'application/x-patch' === $type || 'text/x-patch' === $type ) {
$type = 'text/x-diff';
}
Copy link
Member Author

Choose a reason for hiding this comment

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

More mappings should eventually be done here.

@westonruter westonruter changed the title Remove unused assets; register likely-used assets; allow recognized file types to be edited Remove unused assets; register likely-used assets; allow recognized file types to be edited; allow passing type when getting settings in addition to file Aug 29, 2017
@westonruter westonruter merged commit f7ea658 into master Aug 29, 2017
@westonruter westonruter deleted the remove-unused-assets branch August 29, 2017 21:32
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.

2 participants