@beezwax/fmbond
Version:
A bridge for sending/receiving data between FileMaker and the web viewer
38 lines (34 loc) • 722 B
JavaScript
const path = require("path");
const webExport = {
mode: "none",
entry: ["core-js/es/promise", "./FMBond.js"],
output: {
path: path.resolve(__dirname, "dist"),
filename: "FMBond-web.js",
},
target: ["web", "es5"],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
},
},
},
],
},
};
const webProdExport = {
...webExport,
devtool: "hidden-source-map",
mode: "production",
output: {
path: path.resolve(__dirname, "dist"),
filename: "FMBond-web.min.js",
},
};
module.exports = [webExport, webProdExport];