There are several entry points:
entry: { a: "./a", b: "./b" }
How to add UMD for only one specific?
There are several entry points:
entry: { a: "./a", b: "./b" }
How to add UMD for only one specific?
The solution is multiple configurations
Example:
module.exports = [ { entry: { a: "./a"}, output: { path: __dirname, filename: "a.js" } }, { entry: { b: "./b"}, output: { path: __dirname, filename: "b.js", library: "MyLibrary", libraryTarget: "umd" } } ];
Source: https://ru.stackoverflow.com/questions/544416/
All Articles