Skip to content

Commit

Permalink
fix scripts-config-react-webpack for playground basename
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien LE MOUILLOUR committed Nov 15, 2023
1 parent ce17d45 commit 6863eed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tools/scripts-config-react-webpack/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ async function getIndexTemplate(env, mode, indexTemplatePath, useInitiator = tru
window.Talend = { build: <%= JSON.stringify(htmlWebpackPlugin.files.jsMetadata || [])%>, cssBuild: <%= JSON.stringify(htmlWebpackPlugin.files.cssMetadata || [])%> };
${await inject.getMinified()}
</script>`;
} else {
headScript = `${renderMeta()}<base href="${BASENAME}" />
<script type="text/javascript">
window.basename = '${BASENAME}';
</script>`;
}
const header = `${customHead}
<link rel="icon" type="image/svg+xml" href="<%= htmlWebpackPlugin.options.favicon || htmlWebpackPlugin.options.b64favicon %>">
Expand Down
1 change: 1 addition & 0 deletions tools/scripts-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"devDependencies": {
"@babel/eslint-parser": "^7.23.3",
"@talend/eslint-config": "^12.2.0",
"@talend/eslint-plugin": "^1.0.1",
"eslint": "^8.53.0",
"jest": "^29.7.0"
},
Expand Down

0 comments on commit 6863eed

Please sign in to comment.