diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-25T17·18+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-25T17·18+0000 |
commit | 3ff6ae36975f1293229f27a4e60d1e1334ad6f77 (patch) | |
tree | d6ab35ee1f45b8c26d45b8d12b1e36d774d6a3fa /boilerplate/typescript | |
parent | 06d2467c56de10ee353b746992694365a17d526b (diff) |
Use Parcel's --public-url option when building
By default Parcel prefixes output paths with /. So when Chrome loads wpcarro.dev/goals it attempts to get the CSS and JS and other assets from wpcarro.dev/ instead of wpcarro.dev/goals/. Using the --public-url ./ option makes Parcel output relative paths, which should work better for my needs.
Diffstat (limited to 'boilerplate/typescript')
-rw-r--r-- | boilerplate/typescript/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boilerplate/typescript/default.nix b/boilerplate/typescript/default.nix index b7aaf0a57763..f4d3318439d1 100644 --- a/boilerplate/typescript/default.nix +++ b/boilerplate/typescript/default.nix @@ -11,7 +11,7 @@ pkgs.stdenv.mkDerivation { # parcel.js needs number of CPUs PARCEL_WORKERS = "1"; buildPhase = '' - npx parcel build $src/index.html + npx parcel build src/index.html --public-url ./ ''; installPhase = '' mv dist $out |