TeaWeb/webpack-web.config.ts

17 lines
554 B
TypeScript
Raw Normal View History

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/app/index.ts"],
"modal-external": ["./web/app/index-external.ts"]
});
Object.assign(config.resolve.alias, {
"tc-shared": path.resolve(__dirname, "shared/js"),
"tc-backend/web": path.resolve(__dirname, "web/app"),
"tc-backend": path.resolve(__dirname, "web/app"),
});
return Promise.resolve(config);
});