From 858ea4b201d4253924707184c83ddeb7916ddd87 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Mon, 28 Jan 2019 02:37:23 +0800 Subject: [PATCH] feat: disable internal webpack log plugin --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 1ec8b50..dd84e78 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,12 @@ logger.setOptions({ logLevel: 1 }) module.exports = (opts, ctx) => ({ name: 'vuepress-plugin-export', + chainWebpack(config) { + config.plugins.delete('bar') + // TODO vuepress should give plugin the ability to remove this plugin + config.plugins.delete('vuepress-log') + }, + extendCli(cli) { cli .command('export [targetDir]', 'export current vuepress site to a PDF file')