File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/webpack/src/executors/dev-server/lib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { ExecutorContext, logger } from '@nrwl/devkit';
2
2
import type { Configuration as WebpackConfiguration } from 'webpack' ;
3
3
import type { Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server' ;
4
4
import * as path from 'path' ;
5
+ import { readFileSync } from 'fs-extra' ;
5
6
6
7
import { getWebpackConfig } from '../../webpack/lib/get-webpack-config' ;
7
8
import { WebDevServerOptions } from '../schema' ;
8
9
import { buildServePath } from './serve-path' ;
9
- import { readFileSync } from 'fs-extra' ;
10
10
import { NormalizedWebpackExecutorOptions } from '../../webpack/schema' ;
11
11
12
12
export function getDevServerConfig (
@@ -15,9 +15,9 @@ export function getDevServerConfig(
15
15
serveOptions : WebDevServerOptions
16
16
) : Partial < WebpackConfiguration > {
17
17
const workspaceRoot = context . root ;
18
- const { root : projectRoot , sourceRoot } =
19
- context . projectsConfigurations . projects [ context . projectName ] ;
20
- const webpackConfig = getWebpackConfig ( context , buildOptions ) ;
18
+ const webpackConfig = buildOptions . isolatedConfig
19
+ ? { }
20
+ : getWebpackConfig ( context , buildOptions ) ;
21
21
22
22
( webpackConfig as any ) . devServer = getDevServerPartial (
23
23
workspaceRoot ,
You can’t perform that action at this time.
0 commit comments