2020-04-01 19:47:33 +00:00
|
|
|
import * as path from "path";
|
|
|
|
import * as config_base from "./webpack.config";
|
2020-04-01 13:36:37 +00:00
|
|
|
|
2020-04-09 17:26:56 +00:00
|
|
|
export = () => config_base.config("web").then(config => {
|
|
|
|
Object.assign(config.entry, {
|
2021-03-17 12:28:27 +00:00
|
|
|
"shared-app": ["./web/app/index.ts"],
|
|
|
|
"modal-external": ["./web/app/index-external.ts"]
|
2020-04-09 17:26:56 +00:00
|
|
|
});
|
2020-04-01 13:36:37 +00:00
|
|
|
|
2020-04-09 17:26:56 +00:00
|
|
|
Object.assign(config.resolve.alias, {
|
|
|
|
"tc-shared": path.resolve(__dirname, "shared/js"),
|
2020-08-05 14:34:39 +00:00
|
|
|
"tc-backend/web": path.resolve(__dirname, "web/app"),
|
|
|
|
"tc-backend": path.resolve(__dirname, "web/app"),
|
2020-04-09 17:26:56 +00:00
|
|
|
});
|
2020-04-01 13:36:37 +00:00
|
|
|
|
2020-04-09 17:26:56 +00:00
|
|
|
return Promise.resolve(config);
|
|
|
|
});
|