Comments (7)
Opened an issue for this on the parcel repo.
from parcel-plugin-watch-reload.
@hirasso Sure!
- Install the Browsersync dependency
npm install -g browser-sync
- 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.
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.
Hi @hirasso! How is the progression for fixing it to work with Parcel 2? :)
from parcel-plugin-watch-reload.
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.
@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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parcel-plugin-watch-reload.