Skip to content

Commit 471d659

Browse files
committed
Update HelloWorld.vue
1 parent 5cc3d97 commit 471d659

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ rendering chunks (1)...
132132
vite-plugin-singlefile-compression 2.1.1 deflate-raw base128-ascii
133133
134134
file:///D:/code/js/vite-plugin-singlefile-compression/test/dist/index.html
135-
124.013 kB -> 50.408 kB
135+
124.011 kB -> 50.33 kB
136136
137137
Finish.
138138
139139
computing gzip size...
140-
dist/index.html 50.40 kB │ gzip: 43.93 kB
140+
dist/index.html 50.33 kB │ gzip: 43.89 kB
141141
142-
✓ built in 295ms
142+
✓ built in 279ms
143143
```
144144

145145
![](effect.jpg)

test/src/components/HelloWorld.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import MD from '@/md-vue/description.vue'
1212
<style scoped>
1313
h1 {
1414
/* font-weight: 500; */
15-
font-size: 2.6rem;
15+
font-size: 34px;
1616
position: relative;
1717
top: -10px;
1818
}
@@ -27,6 +27,10 @@ h3 {
2727
}
2828
2929
@media (min-width: 1024px) {
30+
h1 {
31+
/* font-size: 2.6rem; */
32+
}
33+
3034
.greetings h1 {
3135
margin-top: 0;
3236
}

test/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import singleFileCompression from 'vite-plugin-singlefile-compression'
99

1010
// https://vite.dev/config/
1111
export default defineConfig({
12+
server:{
13+
host: '0.0.0.0',
14+
},
1215
plugins: [
1316
vue(),
1417
vueDevTools(),

0 commit comments

Comments
 (0)