Skip to content

Instantly share code, notes, and snippets.

@Foxonn
Foxonn / .htaccess
Created June 21, 2019 10:28 — forked from VicVicos/.htaccess
Make your Website faster - a safe htaccess way
#
# Sources:
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites
# http://codex.wordpress.org/Output_Compression
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/
# http://gtmetrix.com/configure-entity-tags-etags.html
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress
# https://andreashecht-blog.de/4183/
@Foxonn
Foxonn / gulpfile.js
Created September 8, 2018 10:21
Base settings to gulp
let gulp = require('gulp');
less = require('gulp-less'); //Подключаем less пакет
browserSync = require('browser-sync'); // Подключаем Browser Sync
concat = require('gulp-concat'); // Подключаем gulp-concat (для конкатенации файлов)
cssnano = require('gulp-cssnano'); // Подключаем пакет для минификации CSS
rename = require('gulp-rename'); // Подключаем библиотеку для переименования файлов
autoprefixer = require('gulp-autoprefixer');// Подключаем библиотеку для автоматического добавления префиксов
gulp.task('less', function(){ // Создаем таск "less"
return gulp.src('develop/less/main.less') // Берем источник