Files
flights_web/modern.config.ts
T
gnezim 5d512e146e
CI / ci (push) Failing after 37s
Deploy / build-and-deploy (push) Failing after 6s
Add image/font assets from Angular and fix CSS url() resolution
- Copy 134 image files and 28 font files from ClientApp/src/assets/
  to public/assets/ for browser-side serving
- Set tools.cssLoader.url=false in modern.config.ts so the CSS loader
  leaves url() references as-is instead of trying to resolve them as
  webpack modules
- Add .playwright-mcp/, coverage/, and screenshot artifacts to .gitignore
2026-04-15 19:01:56 +03:00

29 lines
614 B
TypeScript

import { appTools, defineConfig } from "@modern-js/app-tools";
import { moduleFederationPlugin } from "@module-federation/modern-js";
const buildTarget = process.env["BUILD_TARGET"];
const isRemote = buildTarget === "remote";
export default defineConfig({
plugins: [appTools({ bundler: "rspack" }), moduleFederationPlugin()],
source: {
entriesDir: "./src",
},
runtime: {
router: true,
},
server: {
ssr: {
mode: "stream",
},
},
output: {
distPath: { root: isRemote ? "dist/remote" : "dist/standalone" },
},
tools: {
cssLoader: {
url: false,
},
},
});