1 const path = require("path");
2 const MiniCssExtractPlugin = require("mini-css-extract-plugin");
7 main: "./web/htdocs/js/index.js",
8 mobile: "./web/htdocs/js/mobile.js",
9 side: "./web/htdocs/js/side_index.js"
12 path: path.resolve(__dirname, "web/htdocs/js"),
13 filename: "[name]_min.js",
15 // Keep this until we have cleaned up our JS files to work as modules and changed all call sites
16 // from HTML code to work with the modules. Until then we need to keep the old behaviour of loading
17 // all JS code in the global namespace
18 libraryTarget: "window",
19 libraryExport: "default"
24 path.resolve(__dirname, "web/htdocs/js/modules"),
25 path.resolve(__dirname, "enterprise/web/htdocs/js/modules")
32 exclude: /node_modules/,
34 loader: "babel-loader",
36 presets: ["@babel/preset-env"]
44 loader: MiniCssExtractPlugin.loader,
46 //publicPath: "../../"
55 new MiniCssExtractPlugin({
56 filename: "../[name]_min.css",