Skip to content

Commit

Permalink
fix(@angular/cli): use inline sourcemaps in test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Jul 2, 2017
1 parent 64e6b94 commit d200193
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 @@ -64,15 +64,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 d200193

Please sign in to comment.