Browser-sync hide proxy subfolder
See original GitHub issueWe can use browser-sync to proxy our localhost subfolder project with something like this:
// Using localhost sub directories
proxy: "localhost/site1"
The browser-sync URL will look something like http://localhost:3000/site1
. It would be great if the subfolder can be hidden so that when I browse http://localhost:3000
, it will actually accessing http://localhost/site1
.
Really hope to see such feature to be build-in. Maybe with the option for us to choose to hide the subfolder or not.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:7
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Browsersync options
Browsersync will wrap your vhost with a proxy URL to view your site. ... Here you can disable/enable each feature individually ghostMode: {...
Read more >How to disable cross-device action mirroring functionality of ...
Disabling this is very simple: Look for your BrowserSync config file (for me it was at root/node_modules/browser-sync/lib/default.config.js) and ...
Read more >How to run Browsersync on non-default port - Roots Discourse
Working with Sage 9 for the first time. I use a cloud based development server + IDE (e.g. I can't access http://localhost/) The...
Read more >Live preview on any device or browser with Browsersync
Use Browsersync with your development site created with Pinegrow ... browser-sync start --proxy "http://127.0.0.1:40001".
Read more >How to configure and Set Up Gulp Browser-sync - eduCBA
We know that gulp is used to automate the different tasks such as CSS and HTML as well as it also provides the...
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
Yeah, but I have lots of projects folder in my server. And it would be troublesome to set a folder as site root every time I run each individual project.
Also, sometimes the folder structure can be complex and long such as:
It would be great if browser-sync comes with hide sub-folder feature, so that once I run browser-sync from my project folder, I will get clean URL for my project.
Of course I hope browser-sync could suit various needs and help every developer, but I’m concerned that the browser-sync project will be overcomplicated if we accept all the feature requests we’ve received almost every day.