webpack/examples/harmony-library/webpack.config.js

15 lines
261 B
JavaScript
Raw Normal View History

"use strict";
2024-07-31 09:56:53 +08:00
const path = require("path");
2016-12-14 19:03:24 +08:00
module.exports = {
2023-03-12 10:27:40 +08:00
// mode: "development" || "production",
2016-12-14 19:03:24 +08:00
entry: "./example",
output: {
path: path.join(__dirname, "dist"),
2016-12-14 19:03:24 +08:00
filename: "MyLibrary.umd.js",
library: "MyLibrary",
libraryTarget: "umd"
}
};