Answer the question
In order to leave comments, you need to log in
How to specify a dynamic path in require when building Webpack?
Good evening!
I'm trying to build a project through Webpack, using the CommonsChunkPlugin plugin to split the code into separate bundles.
Initially, the project was made under Require js, in some places the path is selected dynamically:
promise.then(function(alias) {
require([alias], function() {
// ...
});
});
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