You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
When using a different angular project structures like Nx Workspace, the src folder could end up being apps/todo/src.
ng-univeralWepbackConfigFactory configues the ContextReplacementPlugin to defaults to src which throws an error in a different angular project.
plugins: [
new webpack.ContextReplacementPlugin(
// fixes WARNING Critical dependency: the request of a dependency is an expression
/((.+)?angular(\\|\/)core(.+)?|express(.+)?|(.+)?nestjs(\\|\/)(.+)?)?/,
join(projectDir, 'src'), // location of your src
{}
)
]
I'm submitting a...
Current behavior
When using a different angular project structures like Nx Workspace, the
src
folder could end up beingapps/todo/src
.ng-univeral
WepbackConfigFactory
configues theContextReplacementPlugin
to defaults tosrc
which throws an error in a different angular project.ng-universal/lib/webpack-config.factory.ts
Line 49 in f4bb9f0
Expected behavior
The
WebpackConfigFactory
static methodcreate
should recieve aprojectDir
option to properly configure theContextReplacementPlugin
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Ability to use
ng-universal
with other project structures likenx-workspace
Environment
The text was updated successfully, but these errors were encountered: