Merge rewrite rules from multiple .local-web-server.json files
See original GitHub issueIf we have two .local-web-server.json
files, say in the current directory and in the user’s $HOME
, configurations like port
get merged properly, but if both files have rewrite
rules, then only the rules in the current directory show up with ws --config
.
Maybe it needs a deep merge?
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
how to merge multiple json files with same structure into one ...
Show activity on this post. I need to merge file1. json file2. json (could be more) into onefile.
Read more >local-web-server - npm
Start using local-web-server in your project by running `npm i ... package.json ... To avoid a 404 you need a rewrite rule:.
Read more >API - esbuild
To join a set of files together with esbuild, import them all into a single entry point file and bundle just that one...
Read more >How to merge json files using jq or any tool?
My favorite tool for JSON and YAML merging is Spruce. ... Do a relational JOIN operation between the two files based on the...
Read more >Deployment - Angular
To output to a different folder, change the outputPath in angular.json . ... angular.json file) with a deploy section for the selected project....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this is resolved in v2 which is in progress and available for preview. Config files are now plain javascipt, giving you freedom to share and merge options however you like.
The config file (
lws.config.js
by default) should look something like this:An example of how you might share and merge options:
i have released this feature on a tag as it needs testing… please install and let me know your thoughts:
then run it with this flag:
see the config master deep branch to see the changes.