3088c69b5f
The goal is to see how small this can be w/o disrupting CanvasKit. Change-Id: Ia96ebf94dbe335d9db481d9264279163f8c37e16 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285012 Reviewed-by: Florin Malita <fmalita@chromium.org>
21 lines
508 B
Python
21 lines
508 B
Python
# Copyright 2020 Google LLC
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import SimpleHTTPServer
|
|
import SocketServer
|
|
|
|
PORT = 8001
|
|
|
|
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|
pass
|
|
|
|
Handler.extensions_map['.js'] = 'application/javascript'
|
|
# Without the correct MIME type, async compilation doesn't work
|
|
Handler.extensions_map['.wasm'] = 'application/wasm'
|
|
|
|
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
|
|
|
httpd.serve_forever()
|