Disable logging by default

This commit is contained in:
weyusi 2018-10-25 20:15:26 +10:30
parent a6c5727d4b
commit d2d92bc539
1 changed files with 5 additions and 5 deletions

View File

@ -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')