Closed carlfish closed 7 years ago
damn it.. yes, this worked a month ago - this is caused by a regression in command-line-args v4.0.4.
Will fix it this evening, thanks for the report.
as a workaround, running npm i command-line-args@4.0.3
in whichever folder your local-web-server module is installed should fix it.
Alternatively, downgrading to 1.2.6 seems to work fine. Thanks for the quick response!
the regression was resolved in command-line-args v4.0.5. Please reinstall local-web-server to pick up the latest deps and fix the issue.
Let me know if you find anything else! Also, i'm working on lws version 2 - now's a good time for any feature requests. Cheers!
node 7.10.0
package.json
.local-web-server
Running "npm run ws" does not load the rewrite rule.
The problem appears to be in cli.js - the rewrite rules returned by the command-line parser are the empty array [], so the Object.assign that merges the config sources overwrites whatever it loads from the config file with the empty list.
Which is weird, because I am sure this worked a month ago.