Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eject webpack alias 설정 #2

Open
amorfati0310 opened this issue Mar 15, 2020 · 3 comments
Open

eject webpack alias 설정 #2

amorfati0310 opened this issue Mar 15, 2020 · 3 comments
Assignees
Labels
🙋‍♀️help wanted Extra attention is needed

Comments

@amorfati0310
Copy link
Member

amorfati0310 commented Mar 15, 2020

facebook/create-react-app#2188

webpack.config.js 에서 alias에 '@' : path.resolve('../src') 설정을 해줬는데 

4d0aeca#r37834116
찾지를 못하네요 혹시 어떤게 문제인지 아시면 도움을 주시면 감사하겠습니당 👍

@amorfati0310 amorfati0310 added the 🙋‍♀️help wanted Extra attention is needed label Mar 15, 2020
@y0c
Copy link

y0c commented Mar 15, 2020

override 는 이렇게썼던거같고 vscode상에서 참조하지 못한다고한다면 jsconfig.json paths 를 같이 설정해야될수 있겠네요. 🙂

const { addWebpackAlias , override ...} =  require('customize-cra')

module.exports = {
  webpack: override(
    addWebpackAlias({
      '@' :...
    })
  )
}

eject 하셨었군요 ㅋㅋㅋ 나중에봤네요. eject하지 않고도 될거에용. customize-cra로 왠만한건

@y0c
Copy link

y0c commented Mar 15, 2020

path.resolve(__dirname, '../src')

@amorfati0310
Copy link
Member Author

@y0c 감사합니당 ~~ :) customize-cra로 해보겠습니당 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋‍♀️help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants