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

fix: 웹팩 빌드 오류를 해결한다 #138

Merged
merged 2 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ import { GlobalStyle } from 'style/GlobalStyle';
const queryClient = new QueryClient();

const main = async () => {
if (process.env.NODE_ENV === 'development') {
await worker.start({
serviceWorker: {
url: '/mockServiceWorker.js',
},
onUnhandledRequest: 'bypass',
});
}
await worker.start({
serviceWorker: {
url: '/mockServiceWorker.js',
},
onUnhandledRequest: 'bypass',
});

const domNode = document.getElementById('root');
const root = createRoot(domNode);
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/style/GlobalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { createGlobalStyle } from 'styled-components';
import { reset } from './reset';

export const GlobalStyle = createGlobalStyle`
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap");

${reset}

* {
font-family: "Noto Sans KR", sans-serif !important;
}

/********** hidden scroll **********/
html,
Expand Down
Loading