# @vue/cli

1 min read, 180 words vueclitool

Upgrade package to latest release.

yarn global add @vue/cli @vue/cli-service-global

# Upgrade
yarn global upgrade --latest @vue/cli
# to upgrade the project run inside project
vue upgrade --to <version> --from <version> --all

vue create --packageManager yarn --no-git <project-name>

Prefetching

<link rel="prefetch"> is a type of resource hint that tells the browser to prefetch content that the user may visit in the near future in the browser's idle time, after the page finishes loading.

By default, a Vue CLI app will automatically generate prefetch hints for all JavaScript files generated for async chunks (as a result of on-demand code splitting via dynamic import()

  • connfigurewebpack: {..} to chain exisiting webpack config with new additions

cors

If your static frontend is deployed to a different domain from your backend API, you will need to properly configure CORS (opens new window)

# References

Subscribe to our Newsletter

If you like my work and think it was helpful kindly support my work


Buy Me A Coffee