Skip to content

Commit

Permalink
Open Studio before generating sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Aug 11, 2023
1 parent f54e6fc commit 609043c
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Lync/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,9 @@ async function getAsync(url, responseType) {
ignored: globIgnorePaths,
persistent: true,
ignorePermissionErrors: true,
alwaysStat: true
}).on('all', (event, localPath, localPathStats) => {
alwaysStat: true,
usePolling: true
}).on('all', function(event, localPath, localPathStats) {
if (DEBUG) console.log('E', yellow(event), cyan(localPath))
try {
if (localPath) {
Expand Down Expand Up @@ -1159,13 +1160,16 @@ async function getAsync(url, responseType) {
process.exit()
})
.listen(PORT, function() {
console.log(`\nSyncing ${green(projectJson.name)} on port ${yellow(PORT)}\n`)
})
console.log(`Syncing ${green(projectJson.name)} on port ${yellow(PORT)}\n`)

// Generate sourcemap
// Generate sourcemap

if (CONFIG.GenerateSourcemap) {
generateSourcemap(PROJECT_JSON, map, projectJson)
modified_sourcemap = {}
}
if (CONFIG.GenerateSourcemap) {
const startTime = Date.now()
if (DEBUG) console.log('Generating', cyan('sourcemap.json'), '. . .')
generateSourcemap(PROJECT_JSON, map, projectJson)
if (DEBUG) console.log('Generated', cyan('sourcemap.json'), 'in', (Date.now() - startTime) / 1000, 'seconds')
modified_sourcemap = {}
}
})
})()

0 comments on commit 609043c

Please sign in to comment.