fix: plugin-module bug

This commit is contained in:
suxiaoxin 2017-09-29 12:10:39 +08:00
parent c9da92c655
commit ea8dda3dd5

View File

@ -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 = {}');
}
}