Skip to content

Instantly share code, notes, and snippets.

View craigsimps's full-sized avatar

Craig Simpson craigsimps

View GitHub Profile
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'style': { /* Override default options by adding 'style' to our config. */
outputStyle: 'expanded',
sourceMap: false
},
'woocommerce': { /* Output filename */
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'style': { /* Override default options by adding 'style' to our config. */
outputStyle: 'expanded'
},
'woocommerce': { /* Output filename */
src: 'develop/scss/woocommerce.scss', /* Input file */
dest: 'css/', /* Output path. */
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
scss: {
'woocommerce': { /* Output filename */
src: 'develop/scss/woocommerce.scss', /* Input file */
dest: 'css/' /* Output path. */
},
'edd': { /* Output filename */
src: 'develop/scss/edd.scss', /* Input file */
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
remreplace: true
}
});
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
remmediaquery: false /* Turn off auto conversion of media queries to REMs. */
},
});
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
basefontsize: 10
},
});
toolkit.extendConfig({
/* ... Shortening for brevity, other config would likely be here. */
css: {
/* Additional configuration */
},
});
'use strict';
var gulp = require('gulp'),
toolkit = require('gulp-wp-toolkit');
require('gulp-stats')(gulp);
toolkit.extendConfig({
theme: {
name: "Infinity Pro",
<?php
// Enqueue scripts and styles.
add_action( 'wp_enqueue_scripts', 'infinity_enqueue_scripts_styles' );
function infinity_enqueue_scripts_styles() {
wp_enqueue_style( 'infinity-fonts', '//fonts.googleapis.com/css?family=Cormorant+Garamond:400,400i,700|Raleway:700', array(), CHILD_THEME_VERSION );
wp_enqueue_style( 'infinity-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
'use strict';
var gulp = require('gulp'),
toolkit = require('gulp-wp-toolkit');
require('gulp-stats')(gulp);
toolkit.extendConfig({
theme: {
name: "Infinity Pro",