File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
packages/@angular/cli/models/webpack-configs Expand file tree Collapse file tree 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) {
4242 } ) ) ;
4343 }
4444
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+
4554 return {
4655 plugins : [
4756 new HtmlWebpackPlugin ( {
Original file line number Diff line number Diff line change @@ -65,15 +65,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
6565 extraPlugins . push ( new ProgressPlugin ( { profile : buildOptions . verbose , colors : true } ) ) ;
6666 }
6767
68- if ( buildOptions . sourcemaps ) {
69- extraPlugins . push ( new webpack . SourceMapDevToolPlugin ( {
70- filename : '[file].map[query]' ,
71- moduleFilenameTemplate : '[resource-path]' ,
72- fallbackModuleFilenameTemplate : '[resource-path]?[hash]' ,
73- sourceRoot : 'webpack:///'
74- } ) ) ;
75- }
76-
7768 if ( buildOptions . showCircularDependencies ) {
7869 extraPlugins . push ( new CircularDependencyPlugin ( {
7970 exclude : / ( \\ | \/ ) n o d e _ m o d u l e s ( \\ | \/ ) /
You can’t perform that action at this time.
0 commit comments