Commit 26127bd
committed
fix(@angular/build): resolve PostCSS plugins relative to config file
Previously, PostCSS plugins were resolved from the location of `@angular/build`. This caused issues when the PostCSS configuration file was located in a subdirectory and used plugins not hoisted to the root `node_modules`, as plugins would not be found.
This change updates the PostCSS configuration loading to resolve plugins relative to the directory containing the PostCSS configuration file. This ensures that plugins are correctly located regardless of the configuration files location.1 parent 982d6c5 commit 26127bdCopy full SHA for 26127bd
File tree
Expand file treeCollapse file tree
4 files changed
+25
-14
lines changedOpen diff view settings
Filter options
- packages
- angular_devkit/build_angular/src/tools/webpack/configs
- angular/build/src
- tools/esbuild/stylesheets
- utils
Expand file treeCollapse file tree
4 files changed
+25
-14
lines changedOpen diff view settings
Collapse file
packages/angular/build/src/tools/esbuild/stylesheets/bundle-options.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/tools/esbuild/stylesheets/bundle-options.ts+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
|
Collapse file
packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts+10-5Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| ||
69 | 70 | |
70 | 71 | |
71 | 72 | |
72 | | - |
| 73 | + |
73 | 74 | |
74 | 75 | |
75 | 76 | |
| ||
215 | 216 | |
216 | 217 | |
217 | 218 | |
218 | | - |
| 219 | + |
| 220 | + |
219 | 221 | |
220 | 222 | |
221 | 223 | |
222 | 224 | |
223 | 225 | |
224 | | - |
225 | | - |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
226 | 231 | |
227 | 232 | |
228 | 233 | |
|
Collapse file
packages/angular/build/src/utils/postcss-configuration.ts
Copy file name to clipboardExpand all lines: packages/angular/build/src/utils/postcss-configuration.ts+9-5Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
71 | 71 | |
72 | 72 | |
73 | 73 | |
74 | | - |
75 | | - |
76 | | - |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
77 | 81 | |
78 | 82 | |
79 | 83 | |
| ||
101 | 105 | |
102 | 106 | |
103 | 107 | |
104 | | - |
| 108 | + |
105 | 109 | |
106 | 110 | |
107 | 111 | |
| ||
119 | 123 | |
120 | 124 | |
121 | 125 | |
122 | | - |
| 126 | + |
123 | 127 | |
Collapse file
packages/angular_devkit/build_angular/src/tools/webpack/configs/styles.ts
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/tools/webpack/configs/styles.ts+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
83 | 84 | |
84 | 85 | |
85 | 86 | |
86 | | - |
87 | | - |
88 | | - |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
89 | 91 | |
90 | 92 | |
91 | 93 | |
|
0 commit comments