Skip to content

Instantly share code, notes, and snippets.

View tomkiernan120's full-sized avatar

Tom Kiernan tomkiernan120

View GitHub Profile
@tomkiernan120
tomkiernan120 / vhosts.conf
Created August 16, 2017 12:55
apache config for react one page
<VirtualHost *:8080>
ServerName example.com
DocumentRoot /var/www/httpd/example.com
<Directory "/var/www/httpd/example.com">
...
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define(['buoy'], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(require('buoy'));
} else {
root.myPlugin = factory(root, root.buoy);
}
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) {