Quickbits
Gulp Minify Javascript
This will put a copy of the minified js file in the same folder in which it was found. It will require the following: useref, gulpif gulp.task(‘jsminify’, function() { return gulp.src([ “!node_modules/**/*.js”, “**/wp-content/themes/**/*.js”, “!**/**.min.js” ], { base: “./” }) .pipe(useref()) .pipe(gulpIf(‘*.js’, uglify())) .pipe(rename({suffix: ‘.min’})) .pipe(gulp.dest(‘./’)); });
Read MoreWordPress Order Posts by a Meta Value
$args = array( ‘post_type’ => ‘sessions’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘session_date’, ‘order’ => ‘ASC’ );
Read MoreAlternatives to Coffee
I feel like coffee isn’t a terrible thing to consume, but as with anything, consuming too much of anything probably isn’t good. I have a growing bad habit of just always needing to be drinking something while I work, so here are a few things I’m looking into to help provide myself with a few […]
Read More