mirror of https://github.com/curbengh/hexo-yam
Disable logging by default
This commit is contained in:
parent
a6c5727d4b
commit
d2d92bc539
10
index.js
10
index.js
|
@ -5,7 +5,7 @@ if (hexo.config.neat_enable === true) {
|
||||||
// HTML minifier
|
// HTML minifier
|
||||||
hexo.config.neat_html = assign({
|
hexo.config.neat_html = assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
logger: true,
|
logger: false,
|
||||||
exclude: [],
|
exclude: [],
|
||||||
ignoreCustomComments: [/^\s*more/],
|
ignoreCustomComments: [/^\s*more/],
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
|
@ -20,7 +20,7 @@ if (hexo.config.neat_enable === true) {
|
||||||
// Css minifier
|
// Css minifier
|
||||||
hexo.config.neat_css = assign({
|
hexo.config.neat_css = assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
logger: true,
|
logger: false,
|
||||||
exclude: ['*.min.css']
|
exclude: ['*.min.css']
|
||||||
}, hexo.config.neat_css)
|
}, hexo.config.neat_css)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ if (hexo.config.neat_enable === true) {
|
||||||
hexo.config.neat_js = assign({
|
hexo.config.neat_js = assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
mangle: true,
|
mangle: true,
|
||||||
logger: true,
|
logger: false,
|
||||||
output: {},
|
output: {},
|
||||||
compress: {},
|
compress: {},
|
||||||
exclude: ['*.min.js']
|
exclude: ['*.min.js']
|
||||||
|
@ -37,13 +37,13 @@ if (hexo.config.neat_enable === true) {
|
||||||
// html, css, js compression
|
// html, css, js compression
|
||||||
hexo.config.neat_gzip = assign({
|
hexo.config.neat_gzip = assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
logger: true
|
logger: false
|
||||||
}, hexo.config.neat_gzip)
|
}, hexo.config.neat_gzip)
|
||||||
|
|
||||||
// html, css, js compression
|
// html, css, js compression
|
||||||
hexo.config.neat_brotli = assign({
|
hexo.config.neat_brotli = assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
logger: true
|
logger: false
|
||||||
}, hexo.config.neat_brotli)
|
}, hexo.config.neat_brotli)
|
||||||
|
|
||||||
var filter = require('./lib/filter')
|
var filter = require('./lib/filter')
|
||||||
|
|
Loading…
Reference in New Issue