var critical = require('critical');
gulp.task('critical', function (cb) {
critical.generate({
base: '_site/',
src: 'index.html',
css: ['css/all.min.css'],
dimensions: [{
width: 320,
height: 480
},{
width: 768,
height: 1024
},{
width: 1280,
height: 960
}],
dest: '../_includes/critical.css',
minify: true,
extract: false,
ignore: ['font-face']
});
});
var gulp = require('gulp');
var uncss = require('gulp-uncss');
gulp.task('default', function() {
gulp.src('site.css')
.pipe(uncss({
html: ['index.html', 'about.html']
}))
.pipe(gulp.dest('./out'));
});
div {
-ms-transform: translate(50px,100px); /* IE 9 */
-moz-transform: translate(50px,100px); /* Firefox */
-o-transform: translate(50px,100px); /* Opera */
-webkit-transform: translate(50px,100px); /* Safari */
transform: translate(50px,100px);
}
post
- id
- title
- content
- author_id
author
- id
- name
tag
- id
- name
post_to_tag
- post_id
- tag_id