Answer the question
In order to leave comments, you need to log in
How to connect a third-party regular script?
Help to connect the script, please.
In the documentation, everything is simple: Create a tag script
, add paths, and then run the script in another tag.
I want to do this all in one file which is compiled by webpack into one final file.
The problem is that I can't call the function in any way...
<!-- Скрипты -->
<script src="js/builder.js"></script>
<script src="js/content.js"></script>
<script src="js/config.js"></script>
<script>
const builder = new ContentBuilder({
container: '.container',
snippetOpen: true,
clearPreferences: true
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question