Skip to content

Commit

Permalink
added debug console.log in app.tsx 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yurimnim committed Nov 26, 2024
1 parent 045abab commit 475371d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
35 changes: 21 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
# Logs
logs
*.log
# Dependencies
node_modules
.pnp
.pnp.js

# Testing
coverage

# Production
dist
build

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
# Editor
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env

.history
.history
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="./src/main.tsx"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import 'swiper/css/navigation'
import 'swiper/css/pagination'
import 'swiper/css/scrollbar'

ReactDOM.createRoot(document.getElementById('root')!).render(
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>,
</React.StrictMode>
)
6 changes: 5 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ export default defineConfig({
publicDir: 'public',
build: {
outDir: 'dist',
assetsDir: 'assets',
emptyOutDir: true,
sourcemap: true,
rollupOptions: {
output: {
manualChunks: undefined
entryFileNames: 'assets/[name].[hash].js',
chunkFileNames: 'assets/[name].[hash].js',
assetFileNames: 'assets/[name].[hash].[ext]'
}
}
}
Expand Down

0 comments on commit 475371d

Please sign in to comment.