From ea8dda3dd502e8eebcbbfa6cbcb6f85cd4885e7b Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Fri, 29 Sep 2017 12:10:39 +0800 Subject: [PATCH] fix: plugin-module bug --- ykit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ykit.js b/ykit.js index 70f9afcf..37b40990 100755 --- a/ykit.js +++ b/ykit.js @@ -36,6 +36,8 @@ function initPlugins(){ }) scripts = "module.exports = {" + scripts.join(",") + "}"; fs.writeFileSync('client/plugin-module.js', scripts); + }else{ + fs.writeFileSync('client/plugin-module.js', 'module.exports = {}'); } }