diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-21 08:50:20 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-21 08:50:20 -0300 |
commit | 9c00d5b47d82da80605d78b762777aeb9a972e21 (patch) | |
tree | ad8354551693f24072f75171b38756154f8d7ded /src/static/shared-util | |
parent | dc318c6db0b92510e8297739f4f6999f24859215 (diff) |
url-spec, web-routes, content: static subdirectories
Diffstat (limited to 'src/static/shared-util')
-rw-r--r-- | src/static/shared-util/README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/static/shared-util/README.md b/src/static/shared-util/README.md new file mode 100644 index 00000000..92aa77e6 --- /dev/null +++ b/src/static/shared-util/README.md @@ -0,0 +1,11 @@ +# `src/static/shared-util` + +Module imports under `src/static/js` may appear to be pointing to files that aren't at quite the right place. For example, the import: + + import {empty} from '../shared-util/sugar.js'; + +...is reading a file that doesn't exist here, under `shared-util`. This isn't an error! + +This folder (`src/shared-util`) does not actually exist in a build of the website; instead, the folder `src/util` is symlinked in its place. So, all files under `src/util` are actually available at `/shared-util/` online. + +The above import would actually import from the bindings in `src/util/sugar.js`. |