5d512e146e
- 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
29 lines
614 B
TypeScript
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,
|
|
},
|
|
},
|
|
});
|