https://github.com/phfaist/parcel-resolver-root
Resolver to customize '/' and '~' prefix locations
https://github.com/phfaist/parcel-resolver-root
Last synced: 9 months ago
JSON representation
Resolver to customize '/' and '~' prefix locations
- Host: GitHub
- URL: https://github.com/phfaist/parcel-resolver-root
- Owner: phfaist
- Created: 2024-12-15T00:46:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-18T11:25:29.000Z (over 1 year ago)
- Last Synced: 2025-06-04T09:06:22.006Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parcel-resolver-root
Customize the root paths from which '/' and '~' resolve to. Compatible with the
new Parcel resolver.
Add the following config in your `package.json` in your project root:
```
"@phfaist/parcel-resolver-root": {
"prefixPaths": {
"~": "/path/for/tilde",
"/": "/path/for/root/slash"
}
},
```
where the paths are specified with respect to the configuration file's location
(i.e., the project root).