在开发时加载本地CSS和JavaScript文件,在推送到服务器时生效 [英] Load local CSS and JavaScript files when developing, live when pushed to server

查看:65
本文介绍了在开发时加载本地CSS和JavaScript文件,在推送到服务器时生效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中开发,并对网站做了很多前端更改。但是由于服务器设置,每次我编译它需要一分钟,我可以看到浏览器中的更改。

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.

是否可以使用程序,以便网站将使用本地CSS和JavaScript文件加载网站?

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.

推荐答案

我使用 Charles Proxy 。它允许您将某些URI映射到不同的URI 本地文件

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

因此,您可以告诉它从不同的位置加载特定的JS / CSS文件(或使用通配符并批量映射它们)。

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

这篇关于在开发时加载本地CSS和JavaScript文件,在推送到服务器时生效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆