To ensure your local apache websites bypass a proxy you may be on, you need to add a range of ipaddresses/addresses as an exclusion list.
In the below example I am enabling all .dev
websites and anything 172.18.9.*
IP range
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% |
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
function preloadImages(array) { | |
if (!preloadedImages.list) { | |
preloadedImages.list = []; | |
} | |
for (var i = 0; i < array.length; i++) { | |
var img = new Image(); | |
img.src = array[i]; | |
preloadedImages.list.push(img); | |
} | |
} |
img[src$=".png"] { | |
border: 5px solid red; | |
} |
# Set the URLs to your own proxy
npm config set proxy http://t2proxy.talent2.corp:8080
npm config set https-proxy http://t2proxy.talent2.corp:8080
##The Issue
Referencing web fonts that are hosted on Google Fonts doesn't always work. This could be because of:
You can get around these issues by hosting the fonts locally in your project
.png-trans img { | |
filter: progid:DXImageTransform.Microsoft.gradient( | |
startColorstr=#00FFFFFF, endColorstr=#00FFFFFF | |
); | |
/* If the above code doesn't work for IE7, try the below code instead. */ | |
/*background: transparent; | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); |