From c1b678569d7df8c8d22901ae0f8438b31116b484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 23 May 2018 18:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3next=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE,=E8=87=AA=E5=8A=A8=E8=A1=A5=E5=85=A8js=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.next.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.next.js b/build.next.js index 0575040..4252e02 100644 --- a/build.next.js +++ b/build.next.js @@ -28,7 +28,10 @@ const compileJs = (entry, output) => { let t1 = Date.now() let buf = fs.cat(entry).toString() let { code } = uglify.minify(buf) - code = code.replace(/\.scss/g, '.css') + code = code + .replace(/\.scss/g, '.css') + .replace(/import"([a-z0-9/.]*)(?