Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use production Vue #534

Merged
merged 1 commit into from
May 30, 2024
Merged

Use production Vue #534

merged 1 commit into from
May 30, 2024

Conversation

loneil
Copy link
Contributor

@loneil loneil commented May 29, 2024

The embedded vue CDN import is pulling <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> which is the development un-minified Vue library.
This will log out a warning in the console:

You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.

As well, the vue@3/dist link will actually get the latest release Vue it appears, leaving open to possible production runtime bugs if a newer Vue version alters something that changes behaviour on the page. So pin to a specific Vue version.

Change to [email protected]/dist/vue.global.prod.js to use the (much smaller) prod minified file and pin to 3.4.27.

Signed-off-by: Lucas ONeil <[email protected]>
@loneil loneil requested review from esune and Gavinok May 29, 2024 18:40
@esune esune merged commit 18af14e into main May 30, 2024
5 checks passed
@esune esune deleted the bugfix/vueProd branch May 30, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants