diff --git a/index.js b/index.js index 9217118..27ebfe2 100644 --- a/index.js +++ b/index.js @@ -24,11 +24,11 @@ function replaceRootSyntaxWithAbsolutePath(bundle) { shouldUpdate = true } }) - - if (shouldUpdate) { - fs.writeFileSync(filePath, $.html()) - } }) + + if (shouldUpdate) { + fs.writeFileSync(filePath, $.html()) + } } }