Skip to content

Instantly share code, notes, and snippets.

View bryandugan's full-sized avatar

Bryan Dugan bryandugan

View GitHub Profile
let mix = require('laravel-mix');
let autoprefixer = require('autoprefixer');
let tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
require('laravel-mix-favicon');
// require('laravel-mix-postcss-config');
mix.setPublicPath('web/dist')
// Generate PostCSS file.
.postCss('src/css/app.pcss', 'css', [require('postcss-nested'), tailwindcss('tailwind.config.js'), autoprefixer])
@bryandugan
bryandugan / webpack.mix.js
Created July 16, 2020 18:39
Craft CMS Laravel Mix setup using Tailwind CSS.
let mix = require('laravel-mix');
let autoprefixer = require('autoprefixer');
let tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
require('laravel-mix-favicon');
require('laravel-mix-postcss-config');
/*
|--------------------------------------------------------------------------
@bryandugan
bryandugan / iterm-config.json
Last active July 28, 2020 20:58
Config for iTerm2
{
"Ansi 1 Color" : {
"Green Component" : 0.35600000619888306,
"Blue Component" : 0,
"Red Component" : 0.89099997282028198
},
"Tags" : [
],
"Ansi 12 Color" : {
@bryandugan
bryandugan / .zshrc
Last active July 28, 2020 21:03
.zshrc profile for development laptop.
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/opt/php@7.3/bin:$PATH"
export PATH="/usr/local/opt/php@7.3/sbin:$PATH"
export PATH="/usr/local/opt/php@7.4/bin:$PATH"
export PATH="/usr/local/opt/php@7.4/sbin:$PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
@bryandugan
bryandugan / Craft CMS 3 Package.json
Last active June 4, 2020 00:03
Craft CMS package.json based upon nystudio107's package.json located here. https://nystudio107.com/blog/a-better-package-json-for-the-frontend
{
"name": "spaceray-creative",
"version": "1.0",
"description": "The Front-End Development workflow for Spaceray Creative",
"author": "Bryan Dugan <bryan@spaceraycreative.com>",
"copyright": "Spaceray Creative",
"authorUrl": "https://spaceraycreative.com",
"repository": {
"type": "git"
},
// Package Vars
const pkg = require("./package.json");
// Gulp
const gulp = require("gulp");
// Load all plugins in "devDependencies" into the variable $
const $ = require("gulp-load-plugins")({
pattern: ["*"],
scope: ["devDependencies"]
@bryandugan
bryandugan / Craft CMS SEO Meta.twig
Last active October 9, 2022 15:21
Craft CMS SEO Meta Tags
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="{{ siteUrl }}favicon.png">
<title>{% if homeTitle is defined %}{{ siteName }} | {{ entry.homeTitle }}{% elseif entry.title is defined %}{{ entry.title }} | {{ siteName }}{% else %}{{ title }} | {{ siteName }}{% endif %}</title>
<link rel="stylesheet" href="{{ siteUrl }}assets/css/app.css" />
<script src="{{ siteUrl }}assets/bower_components/modernizr/modernizr.js"></script>
<!-- General Page Meta -->
{% if entry.seoDescription is defined %}
{% if entry.seoDescription is not empty %}