You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
699 B
34 lines
699 B
var path = require("path");
|
|
|
|
var mode = process.env.NODE_ENV || "development";
|
|
|
|
module.exports = [
|
|
// CJS (Node.JS, React, etc...)
|
|
{
|
|
entry: "./src/index.js",
|
|
mode: mode,
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "mapp-board-cjs.js",
|
|
library: "",
|
|
libraryTarget: "commonjs",
|
|
},
|
|
watch: (mode === "development"),
|
|
externals: {
|
|
fabric: 'fabric',
|
|
},
|
|
},
|
|
|
|
// UMD (Browser)
|
|
{
|
|
entry: "./src/index.js",
|
|
mode: mode,
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "mapp-board-umd.js",
|
|
library: "mappBoard",
|
|
libraryTarget: "umd",
|
|
},
|
|
watch: (mode === "development"),
|
|
},
|
|
];
|