arackaf / customize-cra

Override webpack configurations for create-react-app 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my tsconfig.json should be free! please let it go!

lemondreamtobe opened this issue · comments

图片
everytime i start my project, it will overwrite my tsconfig!
it make my paths useless !
how to fix that!

commented

You can get around that like this to tsconfig:

{
  "extends": "./tsconfig.paths.json", // <-- Add this line
  "compilerOptions": {
    "target": "es6",

tsconfig.paths.json

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@components/*": ["src/client/components/*"],
      // Add more paths here
    }
  }
}

Hope that helps