Skip to content

Instantly share code, notes, and snippets.

@joshuawootonn
Last active January 24, 2019 21:16
Show Gist options
  • Save joshuawootonn/e3d70f10ba84e4bacf1e963a660a93bd to your computer and use it in GitHub Desktop.
Save joshuawootonn/e3d70f10ba84e4bacf1e963a660a93bd to your computer and use it in GitHub Desktop.
Global Paths with TypeScript

Global Paths with TypeScript and CRA

{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"svg/*": ["src/svg/*"],
"components/*": ["src/components/*"],
"containers/*": ["src/containers/*"],
"scenes/*": ["src/scenes/*"]
}
}
}
{
...
"extends": "./paths.json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment