To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
| add_filter( 'mime_types', 'aco_extend_mime_types' ); | |
| function aco_extend_mime_types( $existing_mimes ) { | |
| // Add webm, mp4 and OGG to the list of mime types | |
| $existing_mimes['webm'] = 'video/webm'; | |
| $existing_mimes['mp4'] = 'video/mp4'; | |
| $existing_mimes['ogg'] = 'video/ogg'; | |
| // Return an array now including our added mime types |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.