Skip to content

Commit

Permalink
build(bazel): fix an AIO bug where symlinked assets were not loaded on
Browse files Browse the repository at this point in the history
Windows

Added "followSymlinks" blocks on the assets.
  • Loading branch information
kormide authored and josephperrott committed Nov 22, 2022
1 parent 837d2a7 commit de48b19
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions aio/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,29 @@
"sourceMap": true,
"namedChunks": true,
"assets": [
"src/assets",
"src/pwa-manifest.json",
"src/google385281288605d160.html",
// Architect on Windows has difficulty service assets files within a
// Bazel runfiles symlink forest. Using "followSymlinks" seems to
// fix this. Note that the assets below don't need this workaround as
// symlinked tree artifacts pointing to the output tree don't appear
// to have the same issue.
{
"followSymlinks": true,
"input": "src/assets",
"glob": "**/*",
"output": "/assets/"
},
{
"followSymlinks": true,
"input": "src/",
"glob": "**/pwa-manifest.json",
"output": "/"
},
{
"followSymlinks": true,
"input": "src/",
"glob": "**/google385281288605d160.html",
"output": "/"
},
{
"input": "stackblitz/generated",
"output": "generated",
Expand Down

0 comments on commit de48b19

Please sign in to comment.