Git Product home page Git Product logo

Comments (1)

adambullmer avatar adambullmer commented on August 15, 2024 1

Simple answer: The webpack extensions used in this plugin claim livereload, but not Hot module reload. Nothing automatically refreshes your browser view for you when you make code changes.

More complicated answer: At present, nothing will reload the extension popup, options, or other pages. The webpack extension author does a good job explaining at a high level what it does.

So, if it doesn't refresh the page for you, then what is it doing?

If you were to remove the webpack-extention-reloader plugin, here are the manual steps you would have to take every time you made a change to your code:

  1. vue-cli/webpack already handle the rebuild of your application
  2. go to the extensions page
  3. locate your extension
  4. click refresh (in chrome it is available at a top level as a circular arrow)
  5. resume what you were doing, presumably in a separate tab

It doesn't seem like much, but by removing the need to constantly refresh the extension in the browser the development process is a little more streamlined, time will overall be saved, and it is easier for developers to develop browser extensions.

I do think you're right that the docs can be updated to clarify this better. Even though I wrote them, it took me a while to find the footnote about HMR not being supported. Some of my regular work is ramping down and I think I can dedicate some more time to maintenance here, as it looks like there are a few places for improvement, as well as much more community feedback than when I originally started.

from vue-cli-plugin-browser-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.