Skip to content

Instantly share code, notes, and snippets.

@stevenacalhoun
stevenacalhoun / Gruntfile.js
Created August 25, 2014 21:49
Grunt replace
replace: {
dist: {
options: {
patterns: [
{
match: /("|'?)\/?styles\//g,
replacement: '$1http://www.ece.msstate.edu/courses/design/2014/team_amacker/styles/'
},
{
match: /("|'?)\/?scripts\//g,
@stevenacalhoun
stevenacalhoun / .htaccess
Created September 25, 2014 19:45
.htaccess file
# Apache Configuration File
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# ##############################################################################
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
browserSync = require('browser-sync'),
runSequence = require('run-sequence'),
del = require('del');
var paths = {
app: 'app',
html: 'app/**/*.html',
styles: 'app/styles/**/*.scss',