Runs a connect web server, serving files from /client
on port 3000
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"), | |
sass = require("gulp-sass"), | |
postcss = require("gulp-postcss"), | |
autoprefixer = require("autoprefixer"), | |
cssnano = require("cssnano"), | |
sourcemaps = require("gulp-sourcemaps"), | |
browserSync = require("browser-sync").create(); | |
var paths = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function translate_woocommerce($translation, $text, $domain) { | |
if ($domain == 'woocommerce') { | |
switch ($text) { | |
case 'SKU': | |
$translation = 'Product Code'; | |
break; | |
case 'SKU:': | |
$translation = 'Product Code:'; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); // Require gulp | |
// Sass dependencies | |
var sass = require('gulp-sass'); // Compile Sass into CSS | |
var minifyCSS = require('gulp-minify-css'); // Minify the CSS | |
// Minification dependencies | |
var minifyHTML = require('gulp-minify-html'); // Minify HTML | |
var concat = require('gulp-concat'); // Join all JS files together to save space | |
var stripDebug = require('gulp-strip-debug'); // Remove debugging stuffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="noodp, noydir" /> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<link rel="canonical" href="http://mysite.com/" /> | |
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |