Jekyll::Commands::Serve reads in mime.types file.
This commit is contained in:
parent
5e6c2f6e4b
commit
524aa1f36a
|
@ -9,9 +9,8 @@ module Jekyll
|
|||
|
||||
FileUtils.mkdir_p(destination)
|
||||
|
||||
mime_types = WEBrick::HTTPUtils::DefaultMimeTypes
|
||||
mime_types.store 'js', 'application/javascript'
|
||||
mime_types.store 'svg', 'image/svg+xml'
|
||||
mime_types_file = File.expand_path('../mime.types', File.dirname(__FILE__))
|
||||
mime_types = WEBrick::HTTPUtils::load_mime_types(mime_types_file)
|
||||
|
||||
s = HTTPServer.new(
|
||||
:Port => options['port'],
|
||||
|
|
Loading…
Reference in New Issue