webpack/examples/multi-part-library/webpack.config.js

18 lines
306 B
JavaScript
Raw Normal View History

"use strict";
2024-07-31 09:56:53 +08:00
const path = require("path");
2014-04-06 00:11:13 +08:00
module.exports = {
2023-03-12 10:27:40 +08:00
// mode: "development" || "production",
2014-04-06 00:11:13 +08:00
entry: {
alpha: "./alpha",
beta: "./beta"
},
output: {
path: path.join(__dirname, "dist"),
2014-04-06 00:11:13 +08:00
filename: "MyLibrary.[name].js",
library: ["MyLibrary", "[name]"],
libraryTarget: "umd"
}
2017-01-11 17:51:58 +08:00
};