File tree 2 files changed +9
-9
lines changed
packages/@angular/cli/models/webpack-configs
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,15 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
42
42
} ) ) ;
43
43
}
44
44
45
+ if ( buildOptions . sourcemaps ) {
46
+ extraPlugins . push ( new webpack . SourceMapDevToolPlugin ( {
47
+ filename : '[file].map[query]' ,
48
+ moduleFilenameTemplate : '[resource-path]' ,
49
+ fallbackModuleFilenameTemplate : '[resource-path]?[hash]' ,
50
+ sourceRoot : 'webpack:///'
51
+ } ) ) ;
52
+ }
53
+
45
54
return {
46
55
plugins : [
47
56
new HtmlWebpackPlugin ( {
Original file line number Diff line number Diff line change @@ -64,15 +64,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
64
64
extraPlugins . push ( new ProgressPlugin ( { profile : buildOptions . verbose , colors : true } ) ) ;
65
65
}
66
66
67
- if ( buildOptions . sourcemaps ) {
68
- extraPlugins . push ( new webpack . SourceMapDevToolPlugin ( {
69
- filename : '[file].map[query]' ,
70
- moduleFilenameTemplate : '[resource-path]' ,
71
- fallbackModuleFilenameTemplate : '[resource-path]?[hash]' ,
72
- sourceRoot : 'webpack:///'
73
- } ) ) ;
74
- }
75
-
76
67
if ( buildOptions . showCircularDependencies ) {
77
68
extraPlugins . push ( new CircularDependencyPlugin ( {
78
69
exclude : / ( \\ | \/ ) n o d e _ m o d u l e s ( \\ | \/ ) /
You can’t perform that action at this time.
0 commit comments