Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react absolute path

// jsconfig.json file in the front-end root
// now all imports start from src/ by default

{
  "compilerOptions": {
    "baseUrl": "src"
  },
  "exclude": ["node_modules", "build"],
  "include": ["src"]
}
 
PREVIOUS NEXT
Tagged: #react #absolute #path
ADD COMMENT
Topic
Name
5+3 =