Serve sourcemaps as JSON so extensions which rely on mime-type function correctly
This commit is contained in:
parent
eede4a8c5d
commit
5b39a33ab6
|
@ -21,6 +21,9 @@ module Middleman
|
||||||
::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=utf-8'
|
::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=utf-8'
|
||||||
::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=utf-8'
|
::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=utf-8'
|
||||||
|
|
||||||
|
# Sourcemap format
|
||||||
|
::Rack::Mime::MIME_TYPES['.map'] = 'application/json; charset=utf-8'
|
||||||
|
|
||||||
app.extend ClassMethods
|
app.extend ClassMethods
|
||||||
app.extend ServerMethods
|
app.extend ServerMethods
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue