TeaWeb/webpack-web.config.ts

16 lines
533 B
TypeScript
Raw Normal View History

import * as path from "path";
import * as config_base from "./webpack.config";
const config = config_base.config("web");
Object.assign(config.entry, {
"shared-app": "./web/js/index.ts"
});
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"),
"tc-generated/codec/opus": path.resolve(__dirname, "web/native-codec/generated/TeaWeb-Worker-Codec-Opus.js"),
});
export = config;