generated from rspack-contrib/rsbuild-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4933665
commit 51c0e68
Showing
3 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div class="content"> | ||
<h1>Rsbuild with Vue</h1> | ||
<p>Start building amazing things with Rsbuild.</p> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.content { | ||
display: flex; | ||
min-height: 100vh; | ||
line-height: 1.1; | ||
text-align: center; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
.content h1 { | ||
font-size: 3.6rem; | ||
font-weight: 700; | ||
} | ||
.content p { | ||
font-size: 1.2rem; | ||
font-weight: 400; | ||
opacity: 0.5; | ||
} | ||
</style> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Vue from 'vue'; | ||
import App from './App.vue'; | ||
import './index.css'; | ||
|
||
document.querySelector('#root').innerHTML = ` | ||
<div class="content"> | ||
<h1>Vanilla Rsbuild</h1> | ||
<p>Start building amazing things with Rsbuild.</p> | ||
</div> | ||
`; | ||
new Vue({ | ||
el: '#root', | ||
render: (h) => h(App), | ||
}); |