Answer the question
In order to leave comments, you need to log in
How to merge 2 webpack files?
Good afternoon, please tell me:
There are 2 js files that are collected by webpack, one contains the main libraries, the second contains the functions themselves, events, etc.
When I load them into the page:
<script src="main.js" type="text/javascript"></script>
<script src="sup.js" type="text/javascript"></script>
Answer the question
In order to leave comments, you need to log in
To expose the module created by webpack "outside", you need to add the webpack.config.js assembly.
This property creates a variable in the global scope for each bundle, where it saves the entire bundle. library: '[name]'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question