You can open html file in browser, but browser open it with file:///
, serving everything from file system is not possible, I mean working with ThreeJS, ploymer you need to run everything on web server. So here is very simple web server using Python on Mac
- Go to directory (your development) where you need to serve file using web server
- Type
python -m SimpleHTTPServer 8000
- open in browser http://localhost:8000/<name_of_file>.html
You can see file serving from web server, instead of file:///