describes a function that takes in an html node and then updates its referenced contents with the new output_path.
output_path
for instance, if you are updating the content of your <script src="..."></script> elements, your content replacement function will simply look like:
<script src="..."></script>
const replaceScriptContent: ReplaceContentFn = (args, ctx) => { const new_output_path = args.outputPath, node = args.htmlNode htmlNode.attributes.src = new_output_path} Copy
const replaceScriptContent: ReplaceContentFn = (args, ctx) => { const new_output_path = args.outputPath, node = args.htmlNode htmlNode.attributes.src = new_output_path}
TODO: the replace content function should return esbuild-compatible warnings and errors.
describes a function that takes in an html node and then updates its referenced contents with the new
output_path.for instance, if you are updating the content of your
<script src="..."></script>elements, your content replacement function will simply look like:TODO: the replace content function should return esbuild-compatible warnings and errors.