We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<base>
NxAppWebpackPlugin
If baseHref is not set, or set to undefined, the generated html file has a <base href="/"> in it.
baseHref
undefined
html
<base href="/">
If baseHref is not set, or set to undefined, the generated html file should have no <base> tag.
https://github.com/ericbf/nx-webpack-base-tag
pnpm install
nx webpack:build my-app
dist/apps/my-app/index.html
Node : 22.2.0 OS : darwin-arm64 Native Target : aarch64-macos pnpm : 9.12.1 nx (global) : 20.0.0 nx : 20.4.0-beta.2 @nx/js : 20.4.0-beta.2 @nx/jest : 20.4.0-beta.2 @nx/eslint : 20.4.0-beta.2 @nx/workspace : 20.4.0-beta.2 @nx/angular : 20.4.0-beta.2 @nx/cypress : 20.4.0-beta.2 @nx/devkit : 20.4.0-beta.2 @nx/eslint-plugin : 20.4.0-beta.2 @nx/module-federation : 20.4.0-beta.2 @nx/react : 20.4.0-beta.2 @nx/web : 20.4.0-beta.2 @nx/webpack : 20.4.0-beta.2 typescript : 5.7.3 --------------------------------------- Registered Plugins: @nx/eslint/plugin @nx/cypress/plugin @nx/jest/plugin @nx/webpack/plugin --------------------------------------- Community plugins: @ngrx/component-store : 19.0.0 @ngrx/effects : 19.0.0 @ngrx/entity : 19.0.0 @ngrx/operators : 19.0.0 @ngrx/router-store : 19.0.0 @ngrx/store : 19.0.0 @ngrx/store-devtools : 19.0.0
No response
This seems to be a regression of a few issues:
Leaving baseHref unset or set to null/undefined should result in no base tag in the resultant html.
base
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
If
baseHref
is not set, or set toundefined
, the generatedhtml
file has a<base href="/">
in it.Expected Behavior
If
baseHref
is not set, or set toundefined
, the generatedhtml
file should have no<base>
tag.GitHub Repo
https://github.com/ericbf/nx-webpack-base-tag
Steps to Reproduce
pnpm install
nx webpack:build my-app
dist/apps/my-app/index.html
and see the<base href="/">
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This seems to be a regression of a few issues:
Leaving baseHref unset or set to null/undefined should result in no
base
tag in the resultanthtml
.The text was updated successfully, but these errors were encountered: