Early work on Mapp, will move to Github or Gitlab if something becomes of it.
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.

33 lines
699 B

5 years ago
  1. var path = require("path");
  2. var mode = process.env.NODE_ENV || "development";
  3. module.exports = [
  4. // CJS (Node.JS, React, etc...)
  5. {
  6. entry: "./src/index.js",
  7. mode: mode,
  8. output: {
  9. path: path.resolve(__dirname, "dist"),
  10. filename: "mapp-board-cjs.js",
  11. library: "",
  12. libraryTarget: "commonjs",
  13. },
  14. watch: (mode === "development"),
  15. externals: {
  16. fabric: 'fabric',
  17. },
  18. },
  19. // UMD (Browser)
  20. {
  21. entry: "./src/index.js",
  22. mode: mode,
  23. output: {
  24. path: path.resolve(__dirname, "dist"),
  25. filename: "mapp-board-umd.js",
  26. library: "mappBoard",
  27. libraryTarget: "umd",
  28. },
  29. watch: (mode === "development"),
  30. },
  31. ];