Git Product home page Git Product logo

Comments (4)

intentionally-left-nil avatar intentionally-left-nil commented on August 17, 2024 3

I was able to switch to it using this commit: intentionally-left-nil/des@1269fa2

from chrome-extension-webpack-boilerplate.

samuelsimoes avatar samuelsimoes commented on August 17, 2024

The idea is great, I like it.

How do you guys think that this should be implemented?

I tried this implementation #45 but it removes the hot reloading, which is one thing that I want on this boilerplate.

I tried to implement it, just to test, like this: https://gist.github.com/samuelsimoes/80f7fe21814fec023008f77730a1623c

but it was causing full reloads when I changed my code (this on popup), even when not related to content scripts, which I believe that was caused because the extension reload.

Another problem was that every time that I start the server, I got this error: Loading Extension. failed to load extension from: XXXXX. Manifest file is missing or unreadable.

from chrome-extension-webpack-boilerplate.

intentionally-left-nil avatar intentionally-left-nil commented on August 17, 2024

Thanks for taking a look!

Yes, the new code causes the whole extension to reload when making a change. For my needs, this is an acceptable dev environment. It hot-reloads in the sense that when I change code, the change is reflected in the plugin. It does require a refresh, compared to the old reloader.

As far as the second issue, I got that too, and I fixed it by removing the CleanWebpackPlugin plugin.

I have that fixed in my master branch, let me update this PR to include it too.

from chrome-extension-webpack-boilerplate.

intentionally-left-nil avatar intentionally-left-nil commented on August 17, 2024

As far as what it fixes though: With the old hot-reloader, when I would change code, the react code wouldn't actually update properly, or it would cause react errors. Unless something is changed, the hot-reloading isn't working at all with the current setup

from chrome-extension-webpack-boilerplate.

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.