We are using serve as our local dev server for three.js. After upgrading to the latest version, I've realized we need cleanUrls set to false so our documentation still works with serve. The problem is now we don't want to pollute the root directory of the repo with even more files (see https://github.com/mrdoob/three.js/pull/14210). Is there a different way to pass in the mentioned configuration?
+1, I use serve on a number of projects and cleanUrls=true seems like a very unexpected default setting to me. Adding another config file to the root of my projects would be nice to avoid. Some non-mutually exclusive alternatives:
false as beforeserve property in package.jsonserve --config scripts/serve.json so developers can keep the top-level project cleanserve --no-clean-urlsI would be happy to accept a PR for --config <path>... 馃槉 馃憤
Hi everyone, here's my naive attempt in implementing the --config flag.
String without any form of checks in place.serve -c script/myServeConfig.json would workserve.json? (other than now.json or package.json)<CUSTOM-PATH>/serve.json does not exists?serve.json --> now.json --> package.json.Would love to hear feedback from you guys 馃槄
Most helpful comment
+1, I use
serveon a number of projects andcleanUrls=trueseems like a very unexpected default setting to me. Adding another config file to the root of my projects would be nice to avoid. Some non-mutually exclusive alternatives:falseas beforeserveproperty inpackage.jsonserve --config scripts/serve.jsonso developers can keep the top-level project cleanserve --no-clean-urls