Minified image
This commit is contained in:
parent
385a0c5327
commit
4df0cbbe57
9
app.js
9
app.js
@ -14,11 +14,9 @@ const pagination = require('metalsmith-pagination');
|
|||||||
const define = require('metalsmith-define');
|
const define = require('metalsmith-define');
|
||||||
const feed = require('metalsmith-feed');
|
const feed = require('metalsmith-feed');
|
||||||
const sass = require('metalsmith-sass');
|
const sass = require('metalsmith-sass');
|
||||||
const imagemin = require('metalsmith-imagemin');
|
|
||||||
const Handlebars = require('handlebars');
|
const Handlebars = require('handlebars');
|
||||||
const emoji = require('markdown-it-emoji');
|
const emoji = require('markdown-it-emoji');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
const imageminMozjpeg = require('imagemin-mozjpeg');
|
|
||||||
|
|
||||||
const port = process.env.PORT || 8000;
|
const port = process.env.PORT || 8000;
|
||||||
const oneDay = 86400000;
|
const oneDay = 86400000;
|
||||||
@ -101,15 +99,10 @@ Metalsmith(__dirname)
|
|||||||
partials: 'templates/partials'
|
partials: 'templates/partials'
|
||||||
}))
|
}))
|
||||||
.use(sass())
|
.use(sass())
|
||||||
.use(imagemin({
|
|
||||||
plugins: [
|
|
||||||
imageminMozjpeg({progressive: true})
|
|
||||||
]
|
|
||||||
}))
|
|
||||||
.build(function(err) {
|
.build(function(err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
||||||
app.listen(port, function () {
|
app.listen(port, function () {
|
||||||
console.log(`App listening on port ${port}`);
|
console.log(`App listening on port ${port}`);
|
||||||
});
|
});
|
||||||
});
|
});
|
@ -14,7 +14,6 @@
|
|||||||
"metalsmith-collections": "^0.7.0",
|
"metalsmith-collections": "^0.7.0",
|
||||||
"metalsmith-define": "^2.0.1",
|
"metalsmith-define": "^2.0.1",
|
||||||
"metalsmith-feed": "^0.2.0",
|
"metalsmith-feed": "^0.2.0",
|
||||||
"metalsmith-imagemin": "^1.2.0",
|
|
||||||
"metalsmith-in-place": "^1.4.4",
|
"metalsmith-in-place": "^1.4.4",
|
||||||
"metalsmith-layouts": "^1.6.5",
|
"metalsmith-layouts": "^1.6.5",
|
||||||
"metalsmith-markdownit": "^0.3.0",
|
"metalsmith-markdownit": "^0.3.0",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 85 KiB |
Loading…
Reference in New Issue
Block a user