Skip to content

Commit

Permalink
adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 20, 2024
1 parent c9dfa61 commit e0de04e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default defineConfig({
root: __dirname,
root: path.join(__dirname, '<%- this.relativeDir(clientRootDir, clientSrcDir) %>'),
output: {
distPath: {
root: './<%= this.relativeDir(clientRootDir, clientDistDir) %>',
root: path.join(__dirname, './<%= this.relativeDir(clientRootDir, clientDistDir) %>'),
},
},
html: {
template: './<%= this.relativeDir(clientRootDir, clientSrcDir) %>index.html',
template: './index.html',
},
plugins: [
<&- fragments.pluginsSection() -&>
Expand Down
2 changes: 1 addition & 1 deletion generators/vue/templates/rsbuild.config.ts.jhi.vue.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { mfConfig } from './rsbuild.module-federation.config.js';
<&_ if (fragment.configSection) { -&>
source: {
entry: {
app: './<%= this.relativeDir(clientRootDir, clientSrcDir) %>app/<%= microfrontend ? 'index' : 'main' %>.ts',
app: './app/<%= microfrontend ? 'index' : 'main' %>.ts',
},
alias: {
vue$: '@vue/compat/dist/vue.esm-bundler.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const mfConfig = {
name: '<%= lowercaseBaseName %>',
<%_ if (applicationTypeMicroservice) { _%>
exposes: {
'./entities-router': './<%= this.relativeDir(clientRootDir, clientSrcDir) %>app/router/entities',
'./entities-menu': './<%= this.relativeDir(clientRootDir, clientSrcDir) %>app/entities/entities-menu',
'./entities-router': './app/router/entities',
'./entities-menu': './app/entities/entities-menu',
},
<%_ } _%>
filename: 'remoteEntry.js',
Expand Down

0 comments on commit e0de04e

Please sign in to comment.