kireerik/refo

Handle hot JavaScript module deletion

kireerik opened this issue · 1 comments

case 'deleted': fs.unlink(filePath.toStaticDirectory()); break;

case 'deleted':
	const staticFilePath = filePath.toStaticDirectory()

	// handle delete
	//handle(filePath, true)

	if (fs.existsSync(staticFilePath))
		fs.unlink(staticFilePath)
break;

, '.js': (() => {

;(filePath.substring(0, filePath.lastIndexOf('.')) + '.html')