logue / vite-vuetify-ts-starter

@vitejs + @vuejs 3+@Vuetifyjs 3
MIT License
170 stars 37 forks source link

improve performance and reduce build size #3

Open fh32000 opened 2 years ago

fh32000 commented 2 years ago

npm run build:deploy

vite v3.2.2 building for production...
✓ 464 modules transformed.
dist/assets/logo.a40b4f16.svg                            0.52 KiB
dist/assets/materialdesignicons-webfont.861aea05.eot     1214.57 KiB
dist/assets/materialdesignicons-webfont.e52d60f6.woff2   376.33 KiB
dist/assets/materialdesignicons-webfont.48d3eec6.woff    548.61 KiB
dist/assets/materialdesignicons-webfont.bd725a7a.ttf     1214.36 KiB
dist/index.html                                          0.94 KiB
dist/assets/index.d19375d4.js                            10.02 KiB / gzip: 3.88 KiB
dist/assets/vue.91c39abb.js                              89.91 KiB / gzip: 35.59 KiB
dist/assets/index.dae96147.css                           222.11 KiB / gzip: 26.43 KiB
dist/assets/materialdesignicons.ad86dcb1.css             314.37 KiB / gzip: 49.96 KiB
dist/assets/vuetify.72eba6c6.js                          260.30 KiB / gzip: 82.19 KiB
dist/assets/vuetify.f0317dfe.css                         384.50 KiB / gzip: 47.48 KiB

npm install -g live-server cd dist/ live-server

http://0.0.0.0:8080 is already in use. Trying another port.
Ready for changes
Serving vuetify-ts-starter/dist at http://127.0.0.1:39077
ksnip
fh32000 commented 2 years ago

@marcoarruda @logue

logue commented 2 years ago

@fh32000 The version of Vuetify3 you are using is a beta version, so please try with 1.0 or later using the stable version of Vuetify3. The deploy command has changed from build:deploy to build-only according to the specifications of cureate-vue.

To some extent, the problem of bloating the generated pre-built code has been resolved.