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

refactor: #203 webpack -> vite #204

Merged
merged 2 commits into from
Dec 7, 2022
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
21 changes: 3 additions & 18 deletions client/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const path = require("path");

module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
Expand All @@ -10,22 +8,9 @@ module.exports = {
],
framework: "@storybook/react",
core: {
builder: "@storybook/builder-webpack5",
builder: "@storybook/builder-vite",
},
webpackFinal: async (config) => {
config.resolve.alias = {
...config.resolve.alias,
"#pages": path.resolve(__dirname, "../src/pages"),
"#components": path.resolve(__dirname, "../src/components"),
"#hooks": path.resolve(__dirname, "../src/hooks"),
"#utils": path.resolve(__dirname, "../src/utils"),
"#assets": path.resolve(__dirname, "../src/assets"),
"#constants": path.resolve(__dirname, "../src/constants"),
"#types": path.resolve(__dirname, "../src/types"),
"#atoms": path.resolve(__dirname, "../src/atoms"),
"styles/*": path.resolve(__dirname, "../src/styles"),
};

return config;
features: {
storyStoreV7: true,
},
};
2 changes: 1 addition & 1 deletion client/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<head>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=%REACT_APP_KAKAO_APP_KEY%"></script>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=3203a6c4e9df965fdd2d3ded1ca9ab69"></script>
</head>
17 changes: 0 additions & 17 deletions client/craco.config.ts

This file was deleted.

27 changes: 27 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<link rel="stylesheet" type="text/css" charset="UTF-8"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" />
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" />
<script type="text/javascript"
src="//dapi.kakao.com/v2/maps/sdk.js?appkey=3203a6c4e9df965fdd2d3ded1ca9ab69"></script>
<title>runwithme</title>
</head>

<body>
<script type="module" src="/src/index.tsx"></script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>

</html>
Loading