|
|
@ -34,9 +34,12 @@ deleteList.forEach(filename => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const demoJs = resolve(dest, './demo.js'); |
|
|
|
const fileList = ['demo.js', 'fineui.js', '2.0/fineui.js']; |
|
|
|
|
|
|
|
fileList.forEach(filename => { |
|
|
|
|
|
|
|
const sourcefile = resolve(dest, `./${filename}`); |
|
|
|
|
|
|
|
|
|
|
|
const content = `${readFileSync(demoJs, { encoding: 'utf8' })}
|
|
|
|
const content = `${readFileSync(sourcefile, { encoding: 'utf8' })}
|
|
|
|
//# sourceMappingURL=./demo.js.map`;
|
|
|
|
//# sourceMappingURL=./${filename}.map`;
|
|
|
|
|
|
|
|
|
|
|
|
writeFileSync(demoJs, content); |
|
|
|
writeFileSync(sourcefile, content); |
|
|
|
|
|
|
|
}) |
|
|
|