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 Brocco committed Jul 21, 2017
1 parent c46c31e commit 673596f
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 @@ -63,15 +63,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:///'
}));
}

return {
resolve: {
extensions: ['.ts', '.js'],
Expand Down

0 comments on commit 673596f

Please sign in to comment.