Load local CSS and JavaScript files when developin

2019-09-09 06:29发布

问题:

I am developing in Visual Studio and am making a lot of front-end changes to websites. But because of the server setup, every time I compile it takes one minute before I can see the changes in the browser.

Is it possible to use a program so that the website will load the site with local CSS and JavaScript files? I want to make changes locally and see the changes on the website without compiling the project.

回答1:

I use Charles Proxy for that. It allows you to map certain URIs to different URIs or local files.

So you can tell it to load specific JS / CSS files from a different location (or use a wildcard and map them in bulk).



回答2:

The real question here is why you are developing a website with Visual Studio.

You should setup a local HTTP server and access your site from http://localhost.