Skip to content

Commit a38db5d

Browse files
Alan AgiusKeen Yee Liau
authored andcommitted
build: update webpack and postcss
Update `webpack` to `4.28.4` and `postcss` to `7.0.11`
1 parent 3a9230f commit a38db5d

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

packages/angular_devkit/build_angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"minimatch": "3.0.4",
3030
"parse5": "4.0.0",
3131
"opn": "5.4.0",
32-
"postcss": "7.0.7",
32+
"postcss": "7.0.11",
3333
"postcss-import": "12.0.1",
3434
"postcss-loader": "3.0.0",
3535
"raw-loader": "1.0.0",
@@ -45,7 +45,7 @@
4545
"stylus-loader": "3.0.2",
4646
"tree-kill": "1.2.1",
4747
"terser-webpack-plugin": "1.2.1",
48-
"webpack": "4.28.2",
48+
"webpack": "4.28.4",
4949
"webpack-dev-middleware": "3.5.0",
5050
"webpack-dev-server": "3.1.14",
5151
"webpack-merge": "4.2.1",

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/postcss-cli-resources.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ export default postcss.plugin('postcss-cli-resources', (options: PostcssCliResou
169169
let modified = false;
170170

171171
// We want to load it relative to the file that imports
172-
const context = path.dirname(decl.source.input.file);
172+
const inputFile = decl.source && decl.source.input.file;
173+
const context = inputFile && path.dirname(inputFile) || loader.context;
173174

174175
// tslint:disable-next-line:no-conditional-assignment
175176
while (match = urlRegex.exec(value)) {

yarn.lock

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7668,14 +7668,14 @@ postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.1:
76687668
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
76697669
integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==
76707670

7671-
7672-
version "7.0.7"
7673-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.7.tgz#2754d073f77acb4ef08f1235c36c5721a7201614"
7674-
integrity sha512-HThWSJEPkupqew2fnuQMEI2YcTj/8gMV3n80cMdJsKxfIh5tHf7nM5JigNX6LxVMqo6zkgQNAI88hyFvBk41Pg==
7671+
[email protected].11, postcss@^7.0.11:
7672+
version "7.0.11"
7673+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.11.tgz#f63c513b78026d66263bb2ca995bf02e3d1a697d"
7674+
integrity sha512-9AXb//5UcjeOEof9T+yPw3XTa5SL207ZOIC/lHYP4mbUTEh4M0rDAQekQpVANCZdwQwKhBtFZCk3i3h3h2hdWg==
76757675
dependencies:
7676-
chalk "^2.4.1"
7676+
chalk "^2.4.2"
76777677
source-map "^0.6.1"
7678-
supports-color "^5.5.0"
7678+
supports-color "^6.1.0"
76797679

76807680
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.2, postcss@^7.0.5:
76817681
version "7.0.5"
@@ -7686,15 +7686,6 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.2, postcss@^7.0.5:
76867686
source-map "^0.6.1"
76877687
supports-color "^5.5.0"
76887688

7689-
postcss@^7.0.11:
7690-
version "7.0.11"
7691-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.11.tgz#f63c513b78026d66263bb2ca995bf02e3d1a697d"
7692-
integrity sha512-9AXb//5UcjeOEof9T+yPw3XTa5SL207ZOIC/lHYP4mbUTEh4M0rDAQekQpVANCZdwQwKhBtFZCk3i3h3h2hdWg==
7693-
dependencies:
7694-
chalk "^2.4.2"
7695-
source-map "^0.6.1"
7696-
supports-color "^6.1.0"
7697-
76987689
prelude-ls@~1.1.2:
76997690
version "1.1.2"
77007691
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -10531,10 +10522,10 @@ [email protected]:
1053110522
dependencies:
1053210523
webpack-core "^0.6.8"
1053310524

10534-
[email protected].2, webpack@^4.0.0, webpack@^4.6.0:
10535-
version "4.28.2"
10536-
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.28.2.tgz#6b534a8bc91a45787ed631dc2e87aec94e9e4db7"
10537-
integrity sha512-PK3uVg3/NuNVOjPfYleFI6JF7khO7c2kIlksH7mivQm+QDcwiqV1x6+q89dDeOioh5FNxJHr3LKbDu3oSAhl9g==
10525+
[email protected].4, webpack@^4.0.0, webpack@^4.6.0:
10526+
version "4.28.4"
10527+
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.28.4.tgz#1ddae6c89887d7efb752adf0c3cd32b9b07eacd0"
10528+
integrity sha512-NxjD61WsK/a3JIdwWjtIpimmvE6UrRi3yG54/74Hk9rwNj5FPkA4DJCf1z4ByDWLkvZhTZE+P3C/eh6UD5lDcw==
1053810529
dependencies:
1053910530
"@webassemblyjs/ast" "1.7.11"
1054010531
"@webassemblyjs/helper-module-context" "1.7.11"

0 commit comments

Comments
 (0)