Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(@angular/cli): add option to preserve symlinks for module resolu…
…tion
  • Loading branch information
Charles Lyding committed May 25, 2017
commit 9aa4aec6efc70be369e1d670b79eb3213ceeebaa
6 changes: 6 additions & 0 deletions packages/@angular/cli/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ export const baseBuildCommandOptions: any = [
default: true,
aliases: ['dop'],
description: 'Delete output path before build.'
},
{
name: 'preserve-symlinks',
type: Boolean,
default: false,
description: 'Do not use the real path when resolving modules.'
}
];

Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/models/build-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export interface BuildOptions {
poll?: number;
app?: string;
deleteOutputPath?: boolean;
preserveSymlinks?: boolean;
}
1 change: 1 addition & 0 deletions packages/@angular/cli/models/webpack-configs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
resolve: {
extensions: ['.ts', '.js'],
modules: ['node_modules', nodeModules],
symlinks: !buildOptions.preserveSymlinks
},
resolveLoader: {
modules: [nodeModules]
Expand Down