Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh local css on remote server? #43

Open
christianmagill opened this issue Feb 13, 2015 · 2 comments
Open

Refresh local css on remote server? #43

christianmagill opened this issue Feb 13, 2015 · 2 comments

Comments

@christianmagill
Copy link

I do a lot of WordPress development and due to the workflow at my work the site needs to be loaded on a remote server for marketing to do their thing.

I'd love to use something like BrowserSync and what I am wondering, is there any way to inject the local css into the remote website and have it reload on changes. I could create a development user and link to the local css when they are logged in.

This situation was mentioned in BrowserSync/grunt-browser-sync#28, however the particular user case was solved via delay. I'm wondering about linking directly to local files or swapping the urls to point to local files as LiveReload is capable of.

Thanks,

@wtser
Copy link

wtser commented Sep 27, 2015

I have the same question

@TomOne
Copy link

TomOne commented Nov 8, 2016

I was able to find a solution for this:

Given the recipe for Gulp + Sass, replace this line with the following snippet:

proxy: 'desired-remote-host.com',
serveStatic: ['.'],

Also make sure the path for the CSS file one the server matches your local file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants