-
Notifications
You must be signed in to change notification settings - Fork 5
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
webpack을 local, dev, prod로 분리한다. #866
base: develop
Are you sure you want to change the base?
Conversation
1e272a0
to
d85125e
Compare
04f8e20
to
e35e033
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몇 가지 의문점에 대해서 코멘트 남겼습니다 확인해보시고 답변 달아주세요
], | ||
}, | ||
plugins: [ | ||
new ForkTsCheckerWebpackPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loader를 ts-loader로 설정하지 않아도 해당 플러그인이 작동하나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 문제없이 동작합니다.
rules: [ | ||
{ | ||
test: /\.(js|jsx|ts|tsx)?$/, | ||
loader: 'babel-loader', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local 환경에서만 작동한다면, 해당 경우 ts-loader를 적용하여도 문제 없지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ts-loader를 이용할시 emotion의 css-props를 못쓰기 때문에 ui가 깨지기 때문에 babel-loader를 이용하였습니다.
close #865
Ci에서 ts-loader가 문제 생기는 것을 webpack.local.js를 이용하여 해결
공통
local
dev
optimization: minimize: false
로 설정prod