diff --git a/lib/postbuild/postbuild.js b/lib/postbuild/postbuild.js index 290e7d53e..ccf32fa36 100644 --- a/lib/postbuild/postbuild.js +++ b/lib/postbuild/postbuild.js @@ -34,9 +34,12 @@ deleteList.forEach(filename => { }); }); -const demoJs = resolve(dest, './demo.js'); - -const content = `${readFileSync(demoJs, { encoding: 'utf8' })} -//# sourceMappingURL=./demo.js.map`; +const fileList = ['demo.js', 'fineui.js', '2.0/fineui.js']; +fileList.forEach(filename => { + const sourcefile = resolve(dest, `./${filename}`); + + const content = `${readFileSync(sourcefile, { encoding: 'utf8' })} +//# sourceMappingURL=./${filename}.map`; -writeFileSync(demoJs, content); + writeFileSync(sourcefile, content); +});