Skip to content

Commit

Permalink
Update rsbuild.config.ts.jhi.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 18, 2024
1 parent 1e5d6c2 commit ba0ef47
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,23 @@
importsSection: 0,
pluginsSection: 0,
configSection: 0,
configsSection: 0,
});
_&>
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from '@rsbuild/core';
import { mergeRsbuildConfig } from '@rsbuild/core';
import { getAbsoluteFSPath } from 'swagger-ui-dist';
<&- fragments.importsSection() -&>

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

export default defineConfig({
export default mergeRsbuildConfig({
root: path.join(__dirname, '<%- this.relativeDir(clientRootDir, clientSrcDir) %>'),
output: {
<%_ if (microfrontend) { _%>
publicPath: 'auto',
assetPrefix: 'auto',
<%_ } _%>
cleanDistPath: true,
distPath: {
Expand Down Expand Up @@ -80,4 +81,6 @@ export default defineConfig({
<&- fragments.pluginsSection() -&>
],
<&- fragments.configSection() -&>
});
},
<&- fragments.configsSection() -&>
);

0 comments on commit ba0ef47

Please sign in to comment.