Advertisement
fakesamgregory

Webflow Webpack config

Dec 20th, 2023
1,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const path = require("path");
  2.  
  3. module.exports = {
  4.   mode: "production",
  5.   entry: {
  6.     ["global"]: "./src/global.js",
  7.     ["home-page"]: "./src/home-page.js",
  8.   },
  9.   output: {
  10.     path: path.resolve(__dirname, "dist"),
  11.     filename: "[name].js",
  12.     library: "[name]",
  13.     libraryTarget: "umd",
  14.     globalObject: "this",
  15.     umdNamedDefine: true,
  16.     clean: true,
  17.   },
  18. };
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement