Files
nrwl--nx/examples/angular-rspack/csr-tailwind/rspack.config.js
T
2026-07-13 12:38:36 +08:00

41 lines
981 B
JavaScript

module.exports = () => {
if (global.NX_GRAPH_CREATION === undefined) {
const { createConfig } = require('@nx/angular-rspack');
const config = createConfig(
{
options: {
root: __dirname,
outputPath: {
base: './dist',
browser: './browser',
},
index: './src/index.html',
browser: './src/main.ts',
tsConfig: './tsconfig.app.json',
polyfills: ['zone.js'],
assets: [{ glob: '**/*', input: 'public' }],
styles: ['./src/styles.css'],
},
},
{
development: {
options: {
extractLicenses: false,
optimization: false,
outputHashing: 'none',
namedChunks: true,
vendorChunk: true,
},
},
production: {
options: {
outputHashing: 'all',
},
},
}
);
return config;
}
return {};
};