undefinedfix
Sign in

How to remove Vue package.json And display it on the page?

user3856212 edited in Sat, 23 Jul 2022

How to remove Vue package.json And display it on the page?

3 Replies
xtu
commented on Sun, 24 Jul 2022

Import directly to read its version

  import config from '../../package.json'
  console.log(config.version)
JOSEPHJON
commented on Sun, 24 Jul 2022

process . env . npm_ package_ version

Elo
commented on Sun, 24 Jul 2022

No, you can try Axios to request this JSON

lock This question has been locked and the reply function has been disabled.