Commit 4a712d00 authored by rockyl's avatar rockyl

文件名使用hash字符串

节点增加uuid字段
parent f112f438
...@@ -79,6 +79,7 @@ async function execute(psdFile, options) { ...@@ -79,6 +79,7 @@ async function execute(psdFile, options) {
let viewRoot = { let viewRoot = {
name: path.basename(psdFile, '.psd'), name: path.basename(psdFile, '.psd'),
type: 'node', type: 'node',
uuid: generateUUID(),
}; };
const assets = []; const assets = [];
......
This diff is collapsed.
...@@ -86,6 +86,7 @@ export async function execute(psdFile, options) { ...@@ -86,6 +86,7 @@ export async function execute(psdFile, options) {
name, name,
ext, ext,
uuid, uuid,
hash: hashFileName,
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment