提交 fe6bc891 编写于 作者: Q qq_41923622

Auto Commit

上级 59ac30dc
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
<style>
[v-scope] {
display: none;
}
</style>
<!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=lnqGZBeWLAW8QBQxAUVDMSDA60IAdZjv"> -->
<!-- </script> -->
</head>
<body>
<div id="app">
five
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
\ No newline at end of file
console.log("欢迎来到 InsCode");
\ No newline at end of file
{
"name": "nodejs",
"name": "unvier",
"version": "1.0.0",
"description": "",
"main": "main.js",
"type": "module",
"main": "index.js",
"scripts": {
"start": "electron .",
"dev": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@types/node": "^18.0.6",
"node-fetch": "^3.2.6"
},
"devDependencies": {
"electron": "25.x"
"typescript": "^5.9.2",
"vite": "^6.3.6"
}
}
// import typescriptLogo from './typescript.svg'
// import viteLogo from '/vite.svg'
// import { setupCounter } from './counter.ts'
// document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
// <div>
// <a href="https://vite.dev" target="_blank">
// <img src="${viteLogo}" class="logo" alt="Vite logo" />
// </a>
// <a href="https://www.typescriptlang.org/" target="_blank">
// <img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />
// </a>
// <h1>Vite + TypeScript</h1>
// <div class="card">
// <button id="counter" type="button"></button>
// </div>
// <p class="read-the-docs">
// Click on the Vite and TypeScript logos to learn more
// </p>
// </div>
// `
console.log('ddd')
// setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
}
import { defineConfig } from 'vite'
// import { viteStaticCopy } from 'vite-plugin-static-copy'
export default defineConfig({
server: {
host: true,
allowedHosts: true
},
// plugins: [
// viteStaticCopy({
// targets: [
// { src: 'src/assets/*', dest: 'assets/' }, // 将 src/assets 下的文件复制到 dist/assets
// { src: 'basic.jpg', dest: '.' }, // 将 src/assets 下的文件复制到 dist/assets
// ]
// })
// ],
// build: {
// }
})
\ No newline at end of file
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册