From d412c011b676a7bf1c4bf08f58b805109de8d1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 11 Feb 2020 00:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3todo=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.prod.js | 10 ++++++---- src/markd/index.wc | 11 ++++++----- src/markd/parser.js | 26 +++++++++++++------------- src/meditor/index.wc | 2 +- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/build.prod.js b/build.prod.js index c134111..3489c8b 100644 --- a/build.prod.js +++ b/build.prod.js @@ -71,10 +71,12 @@ const compileJs = (entry, output) => { // 编译样式 function compileScss(code = '') { try { - return scss.renderSync({ - data: BASE_SCSS + code, - outputStyle: 'compressed' - }).css + return ( + scss.renderSync({ + data: BASE_SCSS + code, + outputStyle: 'compressed' + }).css + '' + ).trim() } catch (err) { log(err) } diff --git a/src/markd/index.wc b/src/markd/index.wc index 506f340..d5e0261 100644 --- a/src/markd/index.wc +++ b/src/markd/index.wc @@ -1,5 +1,5 @@