bernhard-42 / three-cad-viewer

A CAD viewer component based on three.js
MIT License
178 stars 29 forks source link

add yarn serve option in package.json #1

Closed roipoussiere closed 2 years ago

roipoussiere commented 2 years ago

This PR adds http-server as dev dependency in order to facilitate testing, and add the serve shortcut option to run it.

bernhard-42 commented 2 years ago

What is wrong with yarn run start? It even automatically reloads the page when you change the code? It's a feature of rollup (https://rollupjs.org/)

roipoussiere commented 2 years ago

Oh indeed!

I first tried 127.0.0.1:8082 which doesn't work, but <my hostname>:8082 does.

I don't really understand the black magic under this. 🤔