Browse Source

Pull request #1494: KERNEL-5364 给fineui.js加上sourceMap

Merge in VISUAL/fineui from ~YOUKI/fineui:master to master

* commit '9f2ee542d2d6ecb5b67c6413417954ed95768f99':
  KERNEL-5364 fix: 加分号
  KERNEL-5364 chore: 给fineui.js加上sourceMap
es6
guy 4 years ago
parent
commit
7dcfce8444
  1. 11
      lib/postbuild/postbuild.js

11
lib/postbuild/postbuild.js

@ -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' })}
//# sourceMappingURL=./demo.js.map`;
const content = `${readFileSync(sourcefile, { encoding: 'utf8' })}
//# sourceMappingURL=./${filename}.map`;
writeFileSync(demoJs, content);
writeFileSync(sourcefile, content);
});

Loading…
Cancel
Save