UNPKG

anbani

Version:

Multifunctional javascript toolkit for Georgian Alphabet - Anbani

28 lines (24 loc) 516 B
const path = require("path"); const isProduction = process.env.NODE_ENV == "production"; const config = { entry: "./src/anbani.mjs", output: { path: path.resolve(__dirname, "dist"), filename: "anbani.js", globalObject: "this", library: { name: "anbani", type: "umd", export: "default", umdNamedDefine: true, } }, }; module.exports = () => { if (isProduction) { config.mode = "production"; } else { config.mode = "development"; } return config; };