@@ -72,7 +72,7 @@ export async function applicationGenerator(
72
72
delete project . targets ! [ 'extract-i18n' ] ;
73
73
updateProjectConfiguration ( tree , projectName , project ) ;
74
74
75
- createRsbuildConfig ( tree , projectRoot , options . ssr ) ;
75
+ createRsbuildConfig ( tree , projectRoot , options . ssr , options . style ) ;
76
76
updateServer ( tree , projectRoot ) ;
77
77
78
78
// eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -123,7 +123,12 @@ async function initNxRsbuildPlugin(tree: Tree, skipPackageJson: boolean) {
123
123
} ) ;
124
124
}
125
125
126
- function createRsbuildConfig ( tree : Tree , projectRoot : string , ssr = false ) {
126
+ function createRsbuildConfig (
127
+ tree : Tree ,
128
+ projectRoot : string ,
129
+ ssr = false ,
130
+ inlineStylesExtension = 'css'
131
+ ) {
127
132
const rsbuildConfigContents = `import { createConfig } from '@ng-rsbuild/plugin-angular';
128
133
129
134
export default createConfig({
@@ -133,6 +138,11 @@ export default createConfig({
133
138
server: './src/main.server.ts',
134
139
ssrEntry: './src/server.ts',`
135
140
: ''
141
+ } ${
142
+ inlineStylesExtension !== 'css'
143
+ ? `inlineStylesExtension: '${ inlineStylesExtension } ',
144
+ styles: ['./src/styles.${ inlineStylesExtension } '],`
145
+ : ''
136
146
}
137
147
});
138
148
` ;
0 commit comments