1 | export function configureWebpack(mode, type, configuration) {
|
2 | if (mode === "development") {
|
3 | console.log("Configuring Webpack in development mode");
|
4 | const { createDevelopmentConfig } = require("./development");
|
5 | return createDevelopmentConfig(type, configuration);
|
6 | }
|
7 | else if (mode === "production") {
|
8 | const { createProductionConfig } = require("./production");
|
9 | return createProductionConfig(type, configuration);
|
10 | }
|
11 | throw new Error("Unknown mode: " + mode);
|
12 | }
|
13 |
|
\ | No newline at end of file |