B45i
B45i

Reputation: 2601

How to check if a page is using vue.js without vue-devtools

I can check if the page is running angular or angular.js by checking window.ng and window.angullar.

Is there any such way to check if the page is using vue from the console, without using vue-devtools

Upvotes: 2

Views: 1551

Answers (3)

stanimirsp
stanimirsp

Reputation: 3096

There are a couple of ways that you can try to check if the website uses Vue.js without vue-devtools

Check the page's source code

  • Look for references/library imports to Vue.js in the HTML, JS or CSS files containing vue keyword.

Inspect the DOM

  • You can search in the HTML for keywords like v-, data-v-.

Check the browser console

  • Open the browser console and check for debug messages referenced to Vue.js

Upvotes: 0

Ketan Savaliya
Ketan Savaliya

Reputation: 1210

Look for Vue in HTML Source Code:

View the page's HTML source code and search for script tags referencing Vue.js, such as <script src="https://cdn.jsdelivr.net/npm/vue"></script>.

Upvotes: 0

nitishk72
nitishk72

Reputation: 1746

Caution! This will work only if the site you're checking has Vue as global.

Open Console of your Browser and Write Vue, and after that you will see output like this. Remember that in Vue, v is in upper case ScreenShot of Console

Upvotes: 1

Related Questions