Files
2026-07-13 12:38:36 +08:00

34 lines
746 B
JavaScript

module.exports = () => {
if (global.NX_GRAPH_CREATION === undefined) {
const { createConfig } = require('@nx/angular-rspack');
const config = createConfig(
{
options: {
root: __dirname,
browser: './src/main.ts',
index: './src/index.html',
server: './src/main.server.ts',
polyfills: ['zone.js'],
ssr: { entry: './src/server.ts' },
appShell: true,
assets: [
{
glob: '**/*',
input: './public',
},
],
},
},
{
development: {
options: {
optimization: false,
},
},
}
);
return config;
}
return {};
};