Global install iView
Global install iView
This commit is contained in:
parent
7e554530a1
commit
451b52ceab
7 changed files with 771 additions and 571 deletions
|
@ -1,3 +0,0 @@
|
|||
/**
|
||||
* todo 编译.vue组件为.js文件
|
||||
*/
|
|
@ -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);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue