1 | const { merge } = require("webpack-merge");
|
2 | const path = require("path");
|
3 |
|
4 | const commonConfig = require("./webpack.common.js");
|
5 |
|
6 | module.exports = () => {
|
7 | const envConfig = require(`./webpack.prod.js`);
|
8 |
|
9 | const browserConfig = {
|
10 | output: {
|
11 | libraryTarget: "var",
|
12 | library: "solidClientAuthentication",
|
13 | filename: "solid-client-authn.bundle.js",
|
14 | path: path.resolve(__dirname, "dist"),
|
15 | },
|
16 | };
|
17 |
|
18 | return merge(commonConfig, envConfig, browserConfig);
|
19 | };
|