-
-
Save hmaurer/b6dd7048a1544d7190d42e48f130d30d to your computer and use it in GitHub Desktop.
vite-issue-1847
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Vite App</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script type="module" src="/main.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style.css' | |
import { format } from "date-fns"; | |
import DateFnsAdapter from "@material-ui/pickers/adapter/date-fns"; | |
document.querySelector('#app').innerHTML = ` | |
<h1>Hello Vite!</h1> | |
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a> | |
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "vite-debug", | |
"version": "0.0.0", | |
"scripts": { | |
"dev": "vite", | |
"build": "vite build", | |
"serve": "vite preview" | |
}, | |
"devDependencies": { | |
"vite": "^2.0.0-beta.61" | |
}, | |
"dependencies": { | |
"@material-ui/pickers": "^4.0.0-alpha.12", | |
"date-fns": "^2.16.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#app { | |
font-family: Avenir, Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-align: center; | |
color: #2c3e50; | |
margin-top: 60px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment