TeaWeb/webpack-web.config.ts
WolverinDEV 479168c26e Added WebPack to the default npm start web starter.
App could not be started out of the box (only PHP is required)
2020-04-09 19:26:56 +02:00

17 lines
No EOL
608 B
TypeScript

import * as path from "path";
import * as config_base from "./webpack.config";
export = () => config_base.config("web").then(config => {
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"),
});
return Promise.resolve(config);
});