question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: content-script Support for using vue

See original GitHub issue

Currently for Content Script Using"build:js": "tsup src/background src/content --format iife --out-dir extension/dist --no-splitting" does not support inserting vue components in the page. I think many people have such a scene. Do you think is a good idea?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tshemengcommented, Aug 20, 2021

@antfu @guowenfh @wensonsmith I created a PR #17. It add Vue.js support to content_script.

0reactions
wensonsmithcommented, Aug 11, 2021

content/index.js

import { createApp } from 'vue'
import Hello from './Hello.vue'

createApp(Hello).mount('#app')

An error has occurred, i don’t know how to solve it 😢

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

In chrome extension, how to use content script to inject a Vue ...
Recently I was developing chrome extension with vuejs and has the same requirement that need to inject whole Vue app to specific web...
Read more >
Building a web extension with Vue at speed of light - Streaver
In this 10 min read tutorial you'll learn how to build a production ready web extension made with Vue that works cross-browser.
Read more >
How to build a Chrome Extension to analyze the text as you ...
If the URL matches with the manifest description, the browser will launch the content script. It will be terminated when the URL changes...
Read more >
content_scripts - Mozilla - MDN Web Docs
Instructs the browser to load content scripts into web pages whose URL matches a given pattern.
Read more >
Structuring and testing a Vue/Vuex app with vue-test-utils
With vue -test-utils hitting the scene and making testing a breeze, I've been exploring the best way to structure my Vue apps, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found