Skip to content

fix(@angular/cli): add missing webpack-sources dep #8085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"webpack-dev-middleware": "~1.12.0",
"webpack-dev-server": "~2.7.1",
"webpack-merge": "^4.1.0",
"webpack-sources": "^1.0.0",
"webpack-subresource-integrity": "^1.0.1",
"zone.js": "^0.8.14"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/@angular/cli/models/webpack-configs/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import { readTsconfig } from '../../utilities/read-tsconfig';

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

/**
* license-webpack-plugin has a peer dependency on webpack-sources, list it in a comment to
* let the dependency validator know it is used.
*
* require('webpack-sources')
*/


export function getProdConfig(wco: WebpackConfigOptions) {
const { projectRoot, buildOptions, appConfig } = wco;
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"webpack-dev-middleware": "~1.12.0",
"webpack-dev-server": "~2.7.1",
"webpack-merge": "^4.1.0",
"webpack-sources": "^1.0.0",
"webpack-subresource-integrity": "^1.0.1",
"zone.js": "^0.8.14"
},
Expand Down