From 8636b397a172c8506e6f2f86d2136e690662e0f2 Mon Sep 17 00:00:00 2001 From: ystarlongzi Date: Mon, 17 Apr 2017 15:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=95=E5=8F=B7=E5=90=8E?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=B7=9F=E5=8C=BF=E5=90=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/listeners.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 552c8c9..731f036 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fis3-hook-css-modules", - "version": "1.0.4", + "version": "1.0.5", "description": "基于fis3的css模块化方案", "repository": { "type": "git", diff --git a/src/listeners.js b/src/listeners.js index 92f0c04..d04d786 100644 --- a/src/listeners.js +++ b/src/listeners.js @@ -200,7 +200,7 @@ module.exports = function (conf) { case 'inline': // 添加依赖标记. 否则在更新 css 文件后, 不会触发 livereload - str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '"'; + str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '";'; str += css2js.processCss(scopedCss.injectableSource); break; @@ -217,7 +217,7 @@ module.exports = function (conf) { file.extras.derived = file.extras.derived || []; file.extras.derived.push(newFile); - str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '"'; + str += '"' + lang.info.wrap(lang.dep.wrap(value)) + '";'; str += 'require(' + quote + (newFile.moduleId || newFile.id) + quote + ')'; break; }