Skip to content

Commit

Permalink
Fix regression in Vite project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Sep 27, 2023
1 parent 6061925 commit fcbf02e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
5 changes: 2 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { imagetools } from 'vite-imagetools';
dotenv.config();

export default defineConfig({
root: 'src',
build: {
outDir: '../dist',
outDir: 'dist',
emptyOutDir: true,
},
optimizeDeps: {
Expand All @@ -36,7 +35,7 @@ export default defineConfig({
],
test: {
environment: 'jsdom',
setupFiles: './setupTests.ts',
setupFiles: 'src/setupTests.ts',
coverage: {
reporter: ['text', 'json', 'html'],
},
Expand Down

0 comments on commit fcbf02e

Please sign in to comment.