parent
308fd9b382
commit
e8ad46595f
@ -112,6 +112,11 @@ export function executeWebpackServerBuilder(
|
|||||||
const workspaceDependencies = dependencies
|
const workspaceDependencies = dependencies
|
||||||
.filter((dep) => !isNpmProject(dep.node))
|
.filter((dep) => !isNpmProject(dep.node))
|
||||||
.map((dep) => dep.node.name);
|
.map((dep) => dep.node.name);
|
||||||
|
// default for `nx run-many` is --all projects
|
||||||
|
// by passing an empty string for --projects, run-many will default to
|
||||||
|
// run the target for all projects.
|
||||||
|
// This will occur when workspaceDependencies = []
|
||||||
|
if (workspaceDependencies.length > 0) {
|
||||||
baseWebpackConfig.plugins.push(
|
baseWebpackConfig.plugins.push(
|
||||||
new WebpackNxBuildCoordinationPlugin(
|
new WebpackNxBuildCoordinationPlugin(
|
||||||
`nx run-many --target=${
|
`nx run-many --target=${
|
||||||
@ -120,6 +125,7 @@ export function executeWebpackServerBuilder(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!pathToWebpackConfig) {
|
if (!pathToWebpackConfig) {
|
||||||
return baseWebpackConfig;
|
return baseWebpackConfig;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user