Answer the question
In order to leave comments, you need to log in
How to load variables globally in webpack?
Good afternoon.
There is an old project in which the assembly works on gulp.js. Everything worked, but I decided to rewrite it on webpack. The problem is the following, there is a util.js file in which the content is something like this:
var init_refresh_script = function () {
},
var init_script = function () {
},
App = function () {
return {
init: function () {
init_script(),
},
}
}();
$(function () {
App.init();
});
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