cli: doric build and doric clean

This commit is contained in:
pengfeizhou
2021-02-05 16:35:52 +08:00
committed by osborn
parent e9035858aa
commit a9cfd8b41a
6 changed files with 66 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ function doMerge(startPath, fileName) {
if (filePath.indexOf('.es5.') >= 0){
return
}
console.log('File change:', filePath)
console.log('File changed:', filePath)
const mergedMap = SourceMapMerger.createMergedSourceMapFromFiles([
filePath.replace(/bundle\//, 'build/'),
filePath,
@@ -38,6 +38,7 @@ function doMerge(startPath, fileName) {
fs.writeFileSync(filePath, mergedMap)
return mergedMap
}
function mergeMappings() {
fromDir("bundle", ".map")
}