Global install iView

Global install iView
This commit is contained in:
梁灏 2016-11-14 13:49:06 +08:00
parent 7e554530a1
commit 451b52ceab
7 changed files with 771 additions and 571 deletions

View file

@ -1,3 +0,0 @@
/**
* todo 编译.vue组件为.js文件
*/

View file

@ -1,12 +0,0 @@
var compiler = require('vueify').compiler;
var fs = require('fs');
var data = fs.readFileSync('../components/button/button.vue', 'utf-8');
// console.log(data);
var fileContent = data;
var filePath = '../components/button';
compiler.compile(fileContent, filePath, function (err, result) {
// result is a common js module string
console.log(result);
});