Coder Social home page Coder Social logo

Parcel 2 about parcel-plugin-watch-reload HOT 7 OPEN

hirasso avatar hirasso commented on July 28, 2024
Parcel 2

from parcel-plugin-watch-reload.

Comments (7)

hirasso avatar hirasso commented on July 28, 2024 1

Opened an issue for this on the parcel repo.

from parcel-plugin-watch-reload.

KoichaDev avatar KoichaDev commented on July 28, 2024 1

@hirasso Sure!

  1. Install the Browsersync dependency npm install -g browser-sync
  2. Install the Concurrently dependency: npm install -g concurrently

Example of the package.json setting will be:

{
script: {
"browsersync": "browser-sync start --proxy 'http://url-address.com' --files '**/*.php'",
"parcel": "parcel watch src/index.js scss/main.scss --out-dir dist/",
"dev": "concurrently --kill-others "npm run browsersync" "npm run parcel"",
}
}

That is how I managed to get it to work

from parcel-plugin-watch-reload.

hirasso avatar hirasso commented on July 28, 2024

Hi @morbidick , I haven't had the time yet to check out Parcel 2 and how to build plugins for it. As soon as I'll start using Parcel 2 in my projects, I will pretty sure try to rewrite this plugin or make another one just like it for Parcel 2.

At the moment I can't tell when this will be. If you want to contribute, I'm open for suggestions or even PRs :)

from parcel-plugin-watch-reload.

KoichaDev avatar KoichaDev commented on July 28, 2024

Hi @hirasso! How is the progression for fixing it to work with Parcel 2? :)

from parcel-plugin-watch-reload.

hirasso avatar hirasso commented on July 28, 2024

Hey @KoichaDev , please leave a +1 Reaction on this comment: parcel-bundler/parcel#5144 (reply in thread)

...the API I was using seems to be gone in parcel 2 - It seems the only way to get back the functionality of watch-reload is if it becomes part of the parcel 2 core somehow.

from parcel-plugin-watch-reload.

KoichaDev avatar KoichaDev commented on July 28, 2024

@hirasso Thanks for answering. I actually found a way to work, but it's not used with your solution though. I used Browsersync + parcel together in order to get it to work. Perhaps that would be a solution to implement instead?

from parcel-plugin-watch-reload.

hirasso avatar hirasso commented on July 28, 2024

@KoichaDev that's a great idea!! Would you mind posting your browsersync settings here? Then I could implement a solution that would work in both parcel 1 and 2...

from parcel-plugin-watch-reload.

Related Issues (6)

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.