Includes:
- Configuration
- BrowserSync
- Environments (e.g.,:
--environment=production
) - Image optimization (gif, jpg, png, and svg)
- Sass compilation with external libraries
- Bower installed Sass libraries example(s)
- CSS processing with Pleeease
/* global require */ | |
var lr = require('tiny-lr'), | |
gulp = require('gulp'), | |
compass = require('gulp-compass'), | |
livereload = require('gulp-livereload'), | |
server = lr(); | |
gulp.task('compass', function() { | |
gulp.src('./sass/*.scss') | |
.pipe(compass({ |
// npm install --save-dev gulp gulp-jade gulp-stylus gulp-autoprefixer gulp-minify-css gulp-jshint jshint-stylish gulp-uglify gulp-concat gulp-imagemin imagemin-pngcrush gulp-rename gulp-clean gulp-newer gulp-filesize gulp-size gulp-notify browser-sync | |
// GULP DEPENDENCIES & PLUGINS | |
var gulp = require('gulp'), | |
jade = require('gulp-jade'), | |
stylus = require('gulp-stylus'), | |
prefix = require('gulp-autoprefixer'), | |
mincss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
stylish = require('jshint-stylish'), |
<?php | |
App::after(function($request, $response) | |
{ | |
/** | |
* HTML Minification | |
* https://gist.github.com/zmsaunders/5619519 | |
* https://gist.github.com/garagesocial/6059962 | |
*/ | |
if (Config::get('project.minify.html', false) !== false) |
#!/bin/bash | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
Includes:
--environment=production
)The magento-logrotate.conf file contents: | |
/path/to/magento/var/log/*log { | |
rotate 7 | |
daily | |
compress | |
missingok | |
notifempty | |
copytruncate | |
create 660 www-data www-data |
(function(){ | |
var script = document.createElement("script"); | |
script.src = "https://rawgit.com/Leimi/122905f66682fb3c4927/raw/source.js"; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
})(); |
.flex { | |
display: flex; | |
.align-center { | |
margin: auto; | |
align-self: center; | |
} | |
.align-left { | |
margin-right: auto; |
This page lists what caches or directories you will need to clear to apply various types of changes. It is consolidated and adapted from the complete official documentation on directories and caches.
💁 If your development environment supports it, you are better off using Vinai's automatic cache cleaner. As of this writing, the primary reason why it might not work is if your code is hosted on a NFS share (common with Vagrant).