Minified image

This commit is contained in:
Marcus Noble 2016-05-27 06:44:07 +01:00
parent 385a0c5327
commit 4df0cbbe57
3 changed files with 1 additions and 9 deletions

9
app.js
View File

@ -14,11 +14,9 @@ const pagination = require('metalsmith-pagination');
const define = require('metalsmith-define');
const feed = require('metalsmith-feed');
const sass = require('metalsmith-sass');
const imagemin = require('metalsmith-imagemin');
const Handlebars = require('handlebars');
const emoji = require('markdown-it-emoji');
const moment = require('moment');
const imageminMozjpeg = require('imagemin-mozjpeg');
const port = process.env.PORT || 8000;
const oneDay = 86400000;
@ -101,15 +99,10 @@ Metalsmith(__dirname)
partials: 'templates/partials'
}))
.use(sass())
.use(imagemin({
plugins: [
imageminMozjpeg({progressive: true})
]
}))
.build(function(err) {
if (err) throw err;
app.listen(port, function () {
console.log(`App listening on port ${port}`);
});
});
});

View File

@ -14,7 +14,6 @@
"metalsmith-collections": "^0.7.0",
"metalsmith-define": "^2.0.1",
"metalsmith-feed": "^0.2.0",
"metalsmith-imagemin": "^1.2.0",
"metalsmith-in-place": "^1.4.4",
"metalsmith-layouts": "^1.6.5",
"metalsmith-markdownit": "^0.3.0",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 85 KiB