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-02 15:40:09 +00:00
|
|
|
const config = config_base.config("web");
|
2020-04-01 19:47:33 +00:00
|
|
|
Object.assign(config.entry, {
|
|
|
|
"shared-app": "./web/js/index.ts"
|
|
|
|
});
|
2020-04-01 13:36:37 +00:00
|
|
|
|
2020-04-01 19:47:33 +00:00
|
|
|
Object.assign(config.resolve.alias, {
|
|
|
|
"tc-shared": path.resolve(__dirname, "shared/js"),
|
|
|
|
"tc-backend/web": path.resolve(__dirname, "web/js"),
|
|
|
|
"tc-backend": path.resolve(__dirname, "web/js"),
|
2020-04-02 16:01:30 +00:00
|
|
|
"tc-generated/codec/opus": path.resolve(__dirname, "web/native-codec/generated/TeaWeb-Worker-Codec-Opus.js"),
|
2020-04-01 19:47:33 +00:00
|
|
|
});
|
2020-04-01 13:36:37 +00:00
|
|
|
|
2020-04-01 19:47:33 +00:00
|
|
|
export = config;
|