Skip to content

Commit

Permalink
fix(@angular/cli): use inline sourcemaps in test
Browse files Browse the repository at this point in the history
Fix #6737
  • Loading branch information
filipesilva authored and hansl committed Jul 12, 2017
1 parent ddd406c commit 418c3c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions packages/@angular/cli/models/webpack-configs/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ export function getBrowserConfig(wco: WebpackConfigOptions) {
}));
}

if (buildOptions.sourcemaps) {
extraPlugins.push(new webpack.SourceMapDevToolPlugin({
filename: '[file].map[query]',
moduleFilenameTemplate: '[resource-path]',
fallbackModuleFilenameTemplate: '[resource-path]?[hash]',
sourceRoot: 'webpack:///'
}));
}

return {
plugins: [
new HtmlWebpackPlugin({
Expand Down
9 changes: 0 additions & 9 deletions packages/@angular/cli/models/webpack-configs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose, colors: true }));
}

if (buildOptions.sourcemaps) {
extraPlugins.push(new webpack.SourceMapDevToolPlugin({
filename: '[file].map[query]',
moduleFilenameTemplate: '[resource-path]',
fallbackModuleFilenameTemplate: '[resource-path]?[hash]',
sourceRoot: 'webpack:///'
}));
}

if (buildOptions.showCircularDependencies) {
extraPlugins.push(new CircularDependencyPlugin({
exclude: /(\\|\/)node_modules(\\|\/)/
Expand Down

0 comments on commit 418c3c2

Please sign in to comment.