Skip to content

Commit

Permalink
revert: automatically setting baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jul 30, 2024
1 parent 5356cf7 commit dd6c321
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/transformers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,21 +178,6 @@ export async function run(html = '', config = {}) {
posthtmlPlugins.push(
baseUrl(get(config, 'baseURL', get(config, 'baseUrl', {})))
)
} else {
/**
* Set baseURL to `build.static.destination` if it's not already set.
*/
const destination = get(config, 'build.static.destination', '')
if (destination && !config._dev) {
posthtmlPlugins.push(
baseUrl({
url: destination,
allTags: true,
styleTag: true,
inlineCss: true,
})
)
}
}

/**
Expand Down

0 comments on commit dd6c321

Please sign in to comment.