From 7730ee13ed0f57a203698316d9173b1ca42e14cf Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Fri, 27 Jul 2018 16:54:10 +0800 Subject: [PATCH] fix: missing space between italics and bold (close: #661) "markdown-it" will intendedly reserve this space, and this issue was caused by "preserveWhitespace: true" (See: https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler#options), Impact on performance (Size of whole assets): Before (1952K), After (1960K), which is an acceptable change. --- lib/webpack/createBaseConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webpack/createBaseConfig.js b/lib/webpack/createBaseConfig.js index 8938798f6a..3725019a0a 100644 --- a/lib/webpack/createBaseConfig.js +++ b/lib/webpack/createBaseConfig.js @@ -108,7 +108,7 @@ module.exports = function createBaseConfig ({ .loader('vue-loader') .options({ compilerOptions: { - preserveWhitespace: false + preserveWhitespace: true }, cacheDirectory, cacheIdentifier