Skip to content

Commit ba0ef47

Browse files
authored
Update rsbuild.config.ts.jhi.ejs
1 parent 1e5d6c2 commit ba0ef47

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

generators/javascript/generators/rsbuild/templates/rsbuild.config.ts.jhi.ejs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@
2222
importsSection: 0,
2323
pluginsSection: 0,
2424
configSection: 0,
25+
configsSection: 0,
2526
});
2627
_&>
2728
import path from 'node:path';
2829
import { fileURLToPath } from 'node:url';
29-
import { defineConfig } from '@rsbuild/core';
30+
import { mergeRsbuildConfig } from '@rsbuild/core';
3031
import { getAbsoluteFSPath } from 'swagger-ui-dist';
3132
<&- fragments.importsSection() -&>
3233

3334
const __filename = fileURLToPath(import.meta.url);
3435
const __dirname = path.dirname(__filename);
3536

36-
export default defineConfig({
37+
export default mergeRsbuildConfig({
3738
root: path.join(__dirname, '<%- this.relativeDir(clientRootDir, clientSrcDir) %>'),
3839
output: {
3940
<%_ if (microfrontend) { _%>
40-
publicPath: 'auto',
41+
assetPrefix: 'auto',
4142
<%_ } _%>
4243
cleanDistPath: true,
4344
distPath: {
@@ -80,4 +81,6 @@ export default defineConfig({
8081
<&- fragments.pluginsSection() -&>
8182
],
8283
<&- fragments.configSection() -&>
83-
});
84+
},
85+
<&- fragments.configsSection() -&>
86+
);

0 commit comments

Comments
 (0)